]> source.dussan.org Git - redmine.git/commitdiff
Included Redmine::Hook::Helper to ActionController::Base so call_hook
authorEric Davis <edavis@littlestreamsoftware.com>
Thu, 6 Nov 2008 05:37:29 +0000 (05:37 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Thu, 6 Nov 2008 05:37:29 +0000 (05:37 +0000)
is available in all controllers. #2111

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@1979 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/hook.rb
test/functional/application_controller_test.rb

index 9bf92b3e7e52ec399c150d4aba1b669b6790750e..80e8d5259e3c27dba6177d7a2a63fa887db4efd5 100644 (file)
@@ -107,3 +107,4 @@ module Redmine
 end
 
 ApplicationHelper.send(:include, Redmine::Hook::Helper)
+ActionController::Base.send(:include, Redmine::Hook::Helper)
index 6fcf8fe9a4e1710246b1a0ae42286701511d05bf..7d1cc839121907d68784c94f26eb4e3f32e5b445 100644 (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