Waiter app progress

This commit is contained in:
2015-03-24 18:40:55 +01:00
parent 90a2a2087b
commit 792a31edfd
11 changed files with 72 additions and 22 deletions
+2 -1
View File
@@ -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