Sha256: 4065743cd37d309f0a6feed17b3237886ef539882f9d7b0189436c9f6782880b

Contents?: true

Size: 857 Bytes

Versions: 2

Compression:

Stored size: 857 Bytes

Contents

module EffectivePages
  class Engine < ::Rails::Engine
    engine_name 'effective_pages'

    # Include Helpers to base application
    initializer 'effective_pages.action_controller' do |app|
    end

    # Set up our default configuration options.
    initializer "effective_pages.defaults", before: :load_config_initializers do |app|
      # Set up our defaults, as per our initializer template
      eval File.read("#{config.root}/config/effective_pages.rb")
    end

    initializer 'effective_pages.effective_assets_validation', after: :load_config_initializers do
      if EffectivePages.acts_as_asset_box
        begin
          require 'effective_assets'
        rescue Exception
          raise "unable to load effective_assets.  Plese add gem 'effective_assets' to your Gemfile and then 'bundle install'"
        end
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_pages-1.2.0 lib/effective_pages/engine.rb
effective_pages-1.1.9 lib/effective_pages/engine.rb