mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-31 21:37:16 +00:00
Remove is_master from variant serializer
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Api::VariantSerializer < ActiveModel::Serializer
|
||||
attributes :id, :is_master, :product_name, :sku,
|
||||
attributes :id, :product_name, :sku,
|
||||
:options_text, :unit_value, :unit_description, :unit_to_display,
|
||||
:display_as, :display_name, :name_to_display,
|
||||
:price, :on_demand, :on_hand,
|
||||
|
||||
@@ -11,7 +11,6 @@ describe Api::VariantSerializer do
|
||||
to include(
|
||||
:id,
|
||||
:name_to_display,
|
||||
:is_master,
|
||||
:on_hand,
|
||||
:name_to_display,
|
||||
:unit_to_display,
|
||||
|
||||
Reference in New Issue
Block a user