diff --git a/lib/redmine/hook.rb b/lib/redmine/hook.rb index 9bf92b3e..80e8d525 100644 --- a/lib/redmine/hook.rb +++ b/lib/redmine/hook.rb @@ -107,3 +107,4 @@ module Redmine end ApplicationHelper.send(:include, Redmine::Hook::Helper) +ActionController::Base.send(:include, Redmine::Hook::Helper) diff --git a/test/functional/application_controller_test.rb b/test/functional/application_controller_test.rb index 6fcf8fe9..7d1cc839 100644 --- a/test/functional/application_controller_test.rb +++ b/test/functional/application_controller_test.rb @@ -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