Module: Spree::PermittedAttributesDecorator
- Defined in:
- app/decorators/lib/spree/permitted_attributes_decorator.rb
Constant Summary collapse
- @@identifier_attributes =
%i[id value key_id attachable_id attachable_type]
- @@identifier_key_attributes =
%i[id name]
Class Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
5 6 7 8 9 |
# File 'app/decorators/lib/spree/permitted_attributes_decorator.rb', line 5 def self.prepended(base) base::ATTRIBUTES << :identifier_attributes base::ATTRIBUTES << :identifier_key_attributes base.mattr_reader :identifier_attributes, :identifier_key_attributes end |