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

Version Path
effective_resources-0.8.10 lib/effective_resources/engine.rb
effective_resources-0.8.9 lib/effective_resources/engine.rb
effective_resources-0.8.8 lib/effective_resources/engine.rb
effective_resources-0.8.7 lib/effective_resources/engine.rb
effective_resources-0.8.6 lib/effective_resources/engine.rb
effective_resources-0.8.5 lib/effective_resources/engine.rb
effective_resources-0.8.4 lib/effective_resources/engine.rb
effective_resources-0.8.3 lib/effective_resources/engine.rb
effective_resources-0.8.2 lib/effective_resources/engine.rb
effective_resources-0.8.1 lib/effective_resources/engine.rb
effective_resources-0.8.0 lib/effective_resources/engine.rb
effective_resources-0.7.13 lib/effective_resources/engine.rb
effective_resources-0.7.12 lib/effective_resources/engine.rb
effective_resources-0.7.11 lib/effective_resources/engine.rb
effective_resources-0.7.10 lib/effective_resources/engine.rb
effective_resources-0.7.9 lib/effective_resources/engine.rb
effective_resources-0.7.8 lib/effective_resources/engine.rb
effective_resources-0.7.7 lib/effective_resources/engine.rb
effective_resources-0.7.6 lib/effective_resources/engine.rb
effective_resources-0.7.5 lib/effective_resources/engine.rb