Sha256: d5644163333d12e5d573d45c162ba5fd6a4fc75ee9393d207cc57cf9add3cb79

Contents?: true

Size: 671 Bytes

Versions: 6

Compression:

Stored size: 671 Bytes

Contents

require 'rails'
require 'pg'

require 'awesome_nested_set'
require 'acts_as_shopping_cart'
require 'carrierwave'
require 'friendly_id'
require 'kaminari'
require 'validates_email_format_of'

module PowerShop
  class Engine < Rails::Engine
    isolate_namespace PowerShop

    config.autoload_paths += %W(#{config.root}/lib)

    initializer 'power_shop.add_middleware' do |app|
      app.middleware.use PowerShop::Middleware::ShoppingCart
    end

    initializer :power_shop_factories, after: "factory_girl.set_factory_paths" do |app|
      if defined?(FactoryGirl)
        FactoryGirl.definition_file_paths << root.join('spec', 'factories')
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
power_shop-0.2.4 lib/power_shop/engine.rb
power_shop-0.2.3 lib/power_shop/engine.rb
power_shop-0.2.2 lib/power_shop/engine.rb
power_shop-0.2.1 lib/power_shop/engine.rb
power_shop-0.2.0 lib/power_shop/engine.rb
power_shop-0.1.1 lib/power_shop/engine.rb