Sha256: 5cb9596b1f1b20c599d7b4b4f4c5e15c073fd05a154d65edccae7ced52c3ed88

Contents?: true

Size: 487 Bytes

Versions: 9

Compression:

Stored size: 487 Bytes

Contents

module SpreeMinicart
  class Engine < Rails::Engine
    engine_name 'spree_minicart'

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

    # use rspec for tests
    config.generators do |g|
      g.test_framework :rspec
    end

    def self.activate
      Dir.glob(File.join(File.dirname(__FILE__), "../../app/**/*_decorator*.rb")) do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end
    end

    config.to_prepare &method(:activate).to_proc
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_minicart-1.1.3 lib/spree_minicart/engine.rb
spree_minicart-1.1.2 lib/spree_minicart/engine.rb
spree_minicart-1.1.1 lib/spree_minicart/engine.rb
spree_minicart-1.0.0 lib/spree_minicart/engine.rb
spree_minicart-1.1.0 lib/spree_minicart/engine.rb
spree_minicart-0.0.4 lib/spree_minicart/engine.rb
spree_minicart-0.0.3 lib/spree_minicart/engine.rb
spree_minicart-0.0.2 lib/spree_minicart/engine.rb
spree_minicart-0.0.1 lib/spree_minicart/engine.rb