Sha256: 7de220cddafa17242fbf215f536ecd46fd5a6dce52ca1249d81d445253580428

Contents?: true

Size: 455 Bytes

Versions: 6

Compression:

Stored size: 455 Bytes

Contents

require 'spree/core/environment_extension'

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(spree_config)
        @calculators = Calculators.new
        @preferences = spree_config
        @promotions = Spree::Promo::Environment.new
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_core-2.5.2 lib/spree/core/environment.rb
solidus_core-2.5.1 lib/spree/core/environment.rb
solidus_core-2.5.0 lib/spree/core/environment.rb
solidus_core-2.5.0.rc1 lib/spree/core/environment.rb
solidus_core-2.5.0.beta2 lib/spree/core/environment.rb
solidus_core-2.5.0.beta1 lib/spree/core/environment.rb