Sha256: 4e724719c4e985b64576f0ef3accbdda0fb9c47a0145956a19e5430cb28ca892

Contents?: true

Size: 412 Bytes

Versions: 31

Compression:

Stored size: 412 Bytes

Contents

module Spree
  module Core
    class Environment
      include EnvironmentExtension

      add_class_set :payment_methods
      add_class_set :stock_splitters

      attr_accessor :calculators, :preferences, :promotions

      def initialize
        @calculators = Calculators.new
        @preferences = Spree::AppConfiguration.new
        @promotions = Spree::Promo::Environment.new
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
solidus_core-2.1.0.beta1 lib/spree/core/environment.rb
solidus_core-2.0.0 lib/spree/core/environment.rb
solidus_core-1.4.0 lib/spree/core/environment.rb
solidus_core-2.0.0.rc1 lib/spree/core/environment.rb
solidus_core-1.4.0.rc1 lib/spree/core/environment.rb
solidus_core-2.0.0.beta1 lib/spree/core/environment.rb
solidus_core-1.4.0.beta1 lib/spree/core/environment.rb
solidus_core-1.3.1 lib/spree/core/environment.rb
solidus_core-1.3.0 lib/spree/core/environment.rb
solidus_core-1.3.0.rc2 lib/spree/core/environment.rb
solidus_core-1.3.0.rc1 lib/spree/core/environment.rb