Do not confuse controllers with helpers. TODO remove this
This commit is contained in:
@@ -42,6 +42,15 @@ module Dunlop
|
|||||||
end
|
end
|
||||||
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
|
# add migrations to containing application
|
||||||
initializer 'dunlop.append_migrations' do |app|
|
initializer 'dunlop.append_migrations' do |app|
|
||||||
unless app.root.to_s.match root.to_s
|
unless app.root.to_s.match root.to_s
|
||||||
@@ -52,10 +61,6 @@ module Dunlop
|
|||||||
end
|
end
|
||||||
|
|
||||||
config.after_initialize 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
|
|
||||||
|
|
||||||
# Auto generate target-file's ::Job classes having purpose triggering .generate on the class
|
# Auto generate target-file's ::Job classes having purpose triggering .generate on the class
|
||||||
::Dunlop.target_file_models.each do |target_file_base_model|
|
::Dunlop.target_file_models.each do |target_file_base_model|
|
||||||
|
|||||||
Reference in New Issue
Block a user