]> source.dussan.org Git - redmine.git/commitdiff
Required file lib/redmine/hook.rb is patching autoloaded ApplicationHelper (#20508).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 18 Aug 2015 06:57:50 +0000 (06:57 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 18 Aug 2015 06:57:50 +0000 (06:57 +0000)
Patch by OndÅ™ej.

git-svn-id: http://svn.redmine.org/redmine/trunk@14510 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/hook.rb

index 7f518d8d4ab8b16bdec0be108cc8b4e59164eb5a..419b75e25698eac18da38d50292eecd234e8c12c 100644 (file)
@@ -125,11 +125,11 @@ module Redmine
           end
         end
       end
-      
+
       def controller
         nil
       end
-      
+
       def config
         ActionController::Base.config
       end
@@ -171,5 +171,5 @@ module Redmine
   end
 end
 
-ApplicationHelper.send(:include, Redmine::Hook::Helper)
+ActionView::Base.send(:include, Redmine::Hook::Helper)
 ActionController::Base.send(:include, Redmine::Hook::Helper)