Sha256: e7591f8ebd47761b67e4eb449ad0700b9f7d43fc6908b81b90c18bd504d62f1c

Contents?: true

Size: 272 Bytes

Versions: 4

Compression:

Stored size: 272 Bytes

Contents

Spree::Store.class_eval do
  has_one :braintree_configuration, class_name: "SolidusPaypalBraintree::Configuration", dependent: :destroy

  before_create :build_default_configuration

  private

  def build_default_configuration
    build_braintree_configuration
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_paypal_braintree-0.4.0 app/models/spree/store_decorator.rb
solidus_paypal_braintree-0.3.0 app/models/spree/store_decorator.rb
solidus_paypal_braintree-0.2.0 app/models/spree/store_decorator.rb
solidus_paypal_braintree-0.1.0 app/models/spree/store_decorator.rb