Module: Spree::Api::ApiHelpersDecorator

Defined in:
app/decorators/helpers/spree/api/api_helpers_decorator.rb

Constant Summary collapse

@@identifier_attributes =
%i[id value]
@@identifier_key_attributes =
%i[id name]

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



6
7
8
9
10
# File 'app/decorators/helpers/spree/api/api_helpers_decorator.rb', line 6

def self.prepended(base)
  base::ATTRIBUTES << :identifier_attributes
  base::ATTRIBUTES << :identifier_key_attributes
  base.mattr_reader :identifier_attributes, :identifier_key_attributes
end