Commit 8b3a8ac1 authored by Eric Davis's avatar Eric Davis

Included Redmine::Hook::Helper to ActionController::Base so call_hook

is available in all controllers. #2111


git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1979 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b1cb9cd3
...@@ -107,3 +107,4 @@ module Redmine ...@@ -107,3 +107,4 @@ module Redmine
end end
ApplicationHelper.send(:include, Redmine::Hook::Helper) ApplicationHelper.send(:include, Redmine::Hook::Helper)
ActionController::Base.send(:include, Redmine::Hook::Helper)
...@@ -37,4 +37,8 @@ class ApplicationControllerTest < Test::Unit::TestCase ...@@ -37,4 +37,8 @@ class ApplicationControllerTest < Test::Unit::TestCase
end end
set_language_if_valid('en') set_language_if_valid('en')
end end
def test_call_hook_mixed_in
assert @controller.respond_to?(:call_hook)
end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment