Class: Spree::ApiConfiguration
- Inherits:
-
Preferences::Configuration
- Object
- Preferences::Configuration
- Spree::ApiConfiguration
- Defined in:
- lib/spree/api_configuration.rb
Instance Method Summary collapse
- #promotion_attributes ⇒ Object (also: #preferred_promotion_attributes)
- #promotion_attributes=(value) ⇒ Object (also: #preferred_promotion_attributes=)
Instance Method Details
#promotion_attributes ⇒ Object 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 |