Module: Spree::V2::Storefront::StockLocationSerializerDecorator
- Defined in:
- app/serializers/spree/v2/storefront/stock_location_serializer_decorator.rb
Class Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/serializers/spree/v2/storefront/stock_location_serializer_decorator.rb', line 5 def self.prepended(base) base.attributes :lat, :lon, :name, :address1, :reference, :phone base.has_one :state base.has_many :nearby_places, serializer: :nearby_place base.has_one :logo, serializer: ::SpreeCmCommissioner::V2::Storefront::AssetSerializer end |