Upgrades and fixes, maintenance
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class SupplierExtendedTableSerializer < Qwaiter::Serializer
|
||||
root 'table'
|
||||
embed :ids, include: true
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied #, :alist_id
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied, :active_list_id
|
||||
|
||||
#def list_id
|
||||
#object.active_list_id || object.active_list.try(:id)
|
||||
@@ -11,9 +11,5 @@ class SupplierExtendedTableSerializer < Qwaiter::Serializer
|
||||
#object.active_list
|
||||
#end
|
||||
|
||||
def list
|
||||
object.active_list
|
||||
end
|
||||
|
||||
has_one :list, key: :active_list_id, serializer: SupplierExtendedListSerializer
|
||||
#has_one :list, key: :active_list_id, serializer: SupplierExtendedListSerializer
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@ class SupplierListSerializer < Qwaiter::Serializer
|
||||
:table_id, :table_number, :section_id, :user_ids, :supplier_id, :closed_at
|
||||
has_many :orders
|
||||
#has_many :product_categories
|
||||
has_one :table, serializer: SupplierTableSerializer
|
||||
#has_one :table, serializer: SupplierTableSerializer # tables are part of the sectoins load
|
||||
has_many :join_requests
|
||||
has_many :users, serializer: SupplierUserSerializer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user