Waiter app progress
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
class Waiter::SectionSerializer < Qwaiter::Serializer
|
||||
self.root = :section
|
||||
root 'section'
|
||||
attributes :title, :path, :width, :height
|
||||
has_many :tables, serializer: Waiter::TableSerializer
|
||||
end
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
class Waiter::SupplierSerializer < Qwaiter::Serializer
|
||||
root 'supplier'
|
||||
attributes :open, :name, :lat, :lng, :time_zone, :address, :house_number, :house_number_addition, :postal_code, :city, :country,
|
||||
:facebook_promotion_url, :iens_profile, :week_starts_on_monday, :orders_in_process_count, :orders_placed_count
|
||||
end
|
||||
Reference in New Issue
Block a user