Files
mozo-backend/app/serializers/user_extended_supplier_serializer.rb
T
2014-12-05 14:48:20 +01:00

12 lines
331 B
Ruby

class UserExtendedSupplierSerializer < Qwaiter::Serializer
self.root = :supplier
embed :ids, include: true
attributes :extended_version, :open, :name, :orders_in_process_count, :orders_placed_count
has_many :product_categories
#has_many :products only product in category!!!!!!
def extended_version
true
end
end