Remove extra delegation in serializers

This commit is contained in:
François Turbelin
2020-09-03 00:58:54 +02:00
parent d2c147109d
commit d11d67561f
2 changed files with 0 additions and 4 deletions

View File

@@ -13,8 +13,6 @@ module DfcProvider
serializer: DfcProvider::OfferSerializer,
key: 'dfc:offeredThrough'
delegate :sku, to: :object
def id
dfc_provider_routes.api_dfc_provider_enterprise_catalog_item_url(
enterprise_id: object.product.supplier_id,

View File

@@ -10,8 +10,6 @@ module DfcProvider
attribute :price, key: 'dfc:price'
attribute :stock_limitation, key: 'dfc:stockLimitation'
delegate :price, to: :object
def id
"/offers/#{object.id}"
end