Sha256: 52a7c70de6b389c69de229d27da439b35439bf7b5afceb8b8caa8cc1420e8f3a
Contents?: true
Size: 699 Bytes
Versions: 38
Compression:
Stored size: 699 Bytes
Contents
module EffectiveResources class Engine < ::Rails::Engine engine_name 'effective_resources' config.autoload_paths += Dir["#{config.root}/lib/", "#{config.root}/app/controllers/concerns/effective/"] # Set up our default configuration options. initializer 'effective_resources.defaults', before: :load_config_initializers do |app| eval File.read("#{config.root}/config/effective_resources.rb") end # Register the flash_messages concern so that it can be called in ActionController initializer 'effective_resources.action_controller' do |app| ActiveSupport.on_load :action_controller do include(Effective::FlashMessages) end end end end
Version data entries
38 entries across 38 versions & 1 rubygems