Do not automatically extend helper methods
This commit is contained in:
@@ -42,15 +42,6 @@ module Dunlop
|
||||
end
|
||||
end
|
||||
|
||||
#initializer "dunlop.add_helpers" do
|
||||
config.after_initialize do
|
||||
#TODO this generates noise and pollutes API based implementations (Like Panda)
|
||||
#ActiveSupport.on_load :action_controller do
|
||||
# helper ::Dunlop::ApplicationHelper if respond_to?(:helper)
|
||||
#end
|
||||
::ApplicationHelper.send :include, ::Dunlop::ApplicationHelper
|
||||
end
|
||||
|
||||
# add migrations to containing application
|
||||
initializer 'dunlop.append_migrations' do |app|
|
||||
unless app.root.to_s.match root.to_s
|
||||
|
||||
Reference in New Issue
Block a user