Files
mozo-backend/app/serializers/users/table_serializer.rb
T
2015-09-02 15:52:48 +02:00

13 lines
316 B
Ruby

class Users::TableSerializer < Qwaiter::Serializer
self.root = :table
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied, :supplier_id #, :alist_id
#def list_id
#object.active_list_id || object.active_list.try(:id)
#end
#def list
#object.active_list
#end
end