updates based on F5 testing
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
class Suppliers::TableSerializer
|
||||
include Qwaiter::SupplierBaseSerializer
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id#, :active_list_id
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :active#, :active_list_id
|
||||
end
|
||||
|
||||
@@ -2,4 +2,5 @@ class Users::SupplierSerializer
|
||||
include Qwaiter::UserBaseSerializer
|
||||
attributes :open, :name, :orders_placed_count, :orders_in_process_count, :user_message
|
||||
has_many :product_categories, serializer: Users::ProductCategorySerializer
|
||||
related_link_for :product_categories
|
||||
end
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
class Users::TableSerializer
|
||||
include Qwaiter::UserBaseSerializer
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied #, :supplier_id #, :alist_id
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied, :active #, :supplier_id #, :alist_id
|
||||
has_one :supplier, serializer: Users::SupplierSerializer
|
||||
|
||||
#def list_id
|
||||
#object.active_list_id || object.active_list.try(:id)
|
||||
#end
|
||||
|
||||
related_link_for :supplier
|
||||
#related_link_for :supplier
|
||||
#def list
|
||||
#object.active_list
|
||||
#end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Waiter::TableSerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :needs_help
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :needs_help, :active
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user