JSONApi progress

This commit is contained in:
2015-09-03 20:42:48 +02:00
parent f47a8a9ed0
commit e4dde28dd0
27 changed files with 215 additions and 64 deletions
+4 -3
View File
@@ -1,6 +1,7 @@
class Users::TableSerializer < Qwaiter::Serializer
self.root = :table
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied, :supplier_id #, :alist_id
class Users::TableSerializer < Qwaiter::UserBaseSerializer
#self.root = :table
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied #, :supplier_id #, :alist_id
has_one :supplier, serializer: Users::SupplierSerializer
#def list_id
#object.active_list_id || object.active_list.try(:id)