Sha256: 13bb4234e3db01a3502168cab95ca85fe66d747c4cd12c91235ded66999d8a42

Contents?: true

Size: 657 Bytes

Versions: 8

Compression:

Stored size: 657 Bytes

Contents

module EffectiveProducts
  class Engine < ::Rails::Engine
    engine_name 'effective_products'

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

    # Include acts_as_addressable concern and allow any ActiveRecord object to call it
    initializer 'effective_products.active_record' do |app|
      app.config.to_prepare do
        ActiveRecord::Base.extend(EffectiveProductsRingWizard::Base)
        ActiveRecord::Base.extend(EffectiveProductsStampWizard::Base)
      end
    end

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
effective_products-0.3.9 lib/effective_products/engine.rb
effective_products-0.3.8 lib/effective_products/engine.rb
effective_products-0.3.7 lib/effective_products/engine.rb
effective_products-0.3.6 lib/effective_products/engine.rb
effective_products-0.3.5 lib/effective_products/engine.rb
effective_products-0.3.4 lib/effective_products/engine.rb
effective_products-0.3.3 lib/effective_products/engine.rb
effective_products-0.3.2 lib/effective_products/engine.rb