mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Removing the serializers to fix regression issues
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
class EnterpriseSerializer < ActiveModel::Serializer
|
||||
attributes :id, :name, :description
|
||||
end
|
||||
@@ -1,3 +0,0 @@
|
||||
class OrderCycleSerializer < ActiveModel::Serializer
|
||||
attributes :orders_close_at, id: :order_cycle_id
|
||||
end
|
||||
@@ -1,8 +0,0 @@
|
||||
module Spree
|
||||
class ProductSerializer < ActiveModel::Serializer
|
||||
attributes :id, :name, :description, :price, :permalink
|
||||
has_one :master
|
||||
has_one :supplier
|
||||
has_many :variants
|
||||
end
|
||||
end
|
||||
@@ -1,7 +0,0 @@
|
||||
module Spree
|
||||
class VariantSerializer < ActiveModel::Serializer
|
||||
attributes :id, :is_master, :count_on_hand, :options_text
|
||||
has_many :images
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user