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