supplier menu progress
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
class ProductCategorySerializer < Qwaiter::Serializer
|
||||
embed :ids, include: true
|
||||
attributes :name
|
||||
attributes :name, :supplier_id, :active_on_sunday, :active_on_monday, :active_on_tuesday, :active_on_wednesday,
|
||||
:active_on_thursday, :active_on_friday, :active_on_saturday, :full_day, :start_from, :end_on,
|
||||
:position
|
||||
has_many :products
|
||||
end
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class SupplierSupplierSerializer < Qwaiter::Serializer
|
||||
self.root = :supplier
|
||||
attributes :extended_version, :open, :name, :lat, :lng, :email, :time_zone, :address, :house_number, :house_number_addition, :postal_code, :city, :country,
|
||||
:facebook_promotion_url, :iens_profile
|
||||
:facebook_promotion_url, :iens_profile, :week_starts_on_monday
|
||||
|
||||
def extended_version
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user