Ember temp commit

This commit is contained in:
2013-09-24 08:47:30 +02:00
parent ebbb5dedfc
commit 5650ada04c
71 changed files with 595 additions and 66 deletions
+4
View File
@@ -0,0 +1,4 @@
class ListSerializer < Qwaiter::Serializer
embed :ids
attributes :state, :needs_help, :needs_payment, :is_paid, :price, :table_id, :table_number
end
+4
View File
@@ -0,0 +1,4 @@
class OrderSerializer < Qwaiter::Serializer
embed :ids
attributes :state, :list_id
end
+5
View File
@@ -0,0 +1,5 @@
class SectionSerializer < Qwaiter::Serializer
embed :ids, include: true
attributes *%i[title path width height]
has_many :tables
end
+7
View File
@@ -0,0 +1,7 @@
class TableSerializer < Qwaiter::Serializer
attributes(*%i[number width height position_x position_y section_id occupied active_list_id])
def occupied
object.active_list_id.present?
end
end