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:
Eric Davis 2008-11-06 05:37:29 +00:00
parent b1cb9cd3bd
commit 8b3a8ac1b4
2 changed files with 5 additions and 0 deletions

View File

@ -107,3 +107,4 @@ module Redmine
end
ApplicationHelper.send(:include, Redmine::Hook::Helper)
ActionController::Base.send(:include, Redmine::Hook::Helper)

View File

@ -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