Module: SolidusBraintree::SpreeStoreDecorator

Defined in:
app/decorators/models/solidus_braintree/spree_store_decorator.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



5
6
7
8
# File 'app/decorators/models/solidus_braintree/spree_store_decorator.rb', line 5

def self.prepended(base)
  base.has_one :braintree_configuration, class_name: "SolidusBraintree::Configuration", dependent: :destroy
  base.before_create :build_default_configuration
end