mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 09:21:12 +00:00
Include helper instead of patching (#20508).
git-svn-id: http://svn.redmine.org/redmine/trunk@14693 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7d558120d3
commit
7356e18d36
@ -23,6 +23,7 @@ class Unauthorized < Exception; end
|
||||
class ApplicationController < ActionController::Base
|
||||
include Redmine::I18n
|
||||
include Redmine::Pagination
|
||||
include Redmine::Hook::Helper
|
||||
include RoutesHelper
|
||||
helper :routes
|
||||
|
||||
|
||||
@ -26,6 +26,7 @@ module ApplicationHelper
|
||||
include GravatarHelper::PublicMethods
|
||||
include Redmine::Pagination::Helper
|
||||
include Redmine::SudoMode::Helper
|
||||
include Redmine::Hook::Helper
|
||||
|
||||
extend Forwardable
|
||||
def_delegators :wiki_helper, :wikitoolbar_for, :heads_for_wiki_formatter
|
||||
|
||||
@ -170,6 +170,3 @@ module Redmine
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
ApplicationHelper.send(:include, Redmine::Hook::Helper)
|
||||
ActionController::Base.send(:include, Redmine::Hook::Helper)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user