Class: Spree::ApiConfiguration

Inherits:
Preferences::Configuration
  • Object
show all
Defined in:
lib/spree/api_configuration.rb

Instance Method Summary collapse

Instance Method Details

#promotion_attributesObject Also known as: preferred_promotion_attributes



115
116
117
# File 'lib/spree/api_configuration.rb', line 115

def promotion_attributes
  Spree::Config.promotions.promotion_api_attributes
end

#promotion_attributes=(value) ⇒ Object Also known as: preferred_promotion_attributes=



120
121
122
# File 'lib/spree/api_configuration.rb', line 120

def promotion_attributes=(value)
  Spree::Config.promotions.promotion_api_attributes = value
end