Files
mozo-backend/app/serializers/users/table_serializer.rb
T
2015-09-03 20:42:48 +02:00

14 lines
386 B
Ruby

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)
#end
#def list
#object.active_list
#end
end