lib/effective_regions/engine.rb in effective_regions-1.9.0 vs lib/effective_regions/engine.rb in effective_regions-1.10.0
- old
+ new
@@ -4,11 +4,13 @@
config.autoload_paths += Dir["#{config.root}/app/models/concerns"]
# Include Helpers to base application
initializer 'effective_regions.action_controller' do |app|
- ActiveSupport.on_load :action_controller do
+ ActiveSupport.on_load :action_controller_base do
+ helper EffectiveRegionsHelper
+
ActionController::Base.send(:include, ::EffectiveRegionsControllerHelper)
end
end
# Include acts_as_addressable concern and allow any ActiveRecord object to call it
@@ -22,10 +24,10 @@
initializer "effective_regions.defaults", :before => :load_config_initializers do |app|
eval File.read("#{config.root}/config/effective_regions.rb")
end
initializer "effective_regions.append_precompiled_assets" do |app|
- Rails.application.config.assets.precompile += ['ck_assets.js', 'ck_assets.css', 'drop_cap.css']
+ app.config.assets.precompile += ['effective_regions_manifest.js', 'ck_assets.js', 'ck_assets.css', 'drop_cap.css']
end
end
end