mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Change offeres_to to offers_to for method naming
This commit is contained in:
@@ -6,7 +6,7 @@ module DfcProvider
|
||||
class OfferSerializer < ActiveModel::Serializer
|
||||
attribute :id, key: '@id'
|
||||
attribute :type, key: '@type'
|
||||
attribute :offeres_to, key: 'dfc:offeres_to'
|
||||
attribute :offers_to, key: 'dfc:offers_to'
|
||||
attribute :price, key: 'dfc:price'
|
||||
attribute :stock_limitation, key: 'dfc:stockLimitation'
|
||||
|
||||
@@ -18,7 +18,7 @@ module DfcProvider
|
||||
'dfc:Offer'
|
||||
end
|
||||
|
||||
def offeres_to
|
||||
def offers_to
|
||||
{
|
||||
'@type' => '@id',
|
||||
'@id' => nil
|
||||
|
||||
Reference in New Issue
Block a user