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
This commit is contained in:
parent
b1cb9cd3bd
commit
8b3a8ac1b4
|
@ -107,3 +107,4 @@ module Redmine
|
|||
end
|
||||
|
||||
ApplicationHelper.send(:include, Redmine::Hook::Helper)
|
||||
ActionController::Base.send(:include, Redmine::Hook::Helper)
|
||||
|
|
|
@ -37,4 +37,8 @@ class ApplicationControllerTest < Test::Unit::TestCase
|
|||
end
|
||||
set_language_if_valid('en')
|
||||
end
|
||||
|
||||
def test_call_hook_mixed_in
|
||||
assert @controller.respond_to?(:call_hook)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue