Do not confuse controllers with helpers. TODO remove this

This commit is contained in:
2022-02-01 09:59:51 -05:00
parent be8f88df4f
commit 5912a8e3d2
+9 -4
View File
@@ -42,6 +42,15 @@ 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
@@ -52,10 +61,6 @@ module Dunlop
end
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
::Dunlop.target_file_models.each do |target_file_base_model|