Sha256: 0d60a73cff8086fb7deefc48070e4ffe201246fd914626f7c7c33092fbd70a22

Contents?: true

Size: 672 Bytes

Versions: 11

Compression:

Stored size: 672 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|
      ActiveSupport.on_load :active_record do
        ActiveRecord::Base.extend(EffectiveProductsRingWizard::Base)
        ActiveRecord::Base.extend(EffectiveProductsStampWizard::Base)
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
effective_products-0.3.1 lib/effective_products/engine.rb
effective_products-0.3.0 lib/effective_products/engine.rb
effective_products-0.2.1 lib/effective_products/engine.rb
effective_products-0.2.0 lib/effective_products/engine.rb
effective_products-0.1.2 lib/effective_products/engine.rb
effective_products-0.1.1 lib/effective_products/engine.rb
effective_products-0.1.0 lib/effective_products/engine.rb
effective_products-0.0.9 lib/effective_products/engine.rb
effective_products-0.0.8 lib/effective_products/engine.rb
effective_products-0.0.7 lib/effective_products/engine.rb
effective_products-0.0.6 lib/effective_products/engine.rb