Active model serializer deprication smash
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
class Employees::SupplierSerializer < Qwaiter::Serializer
|
||||
self.root = :supplier
|
||||
embed :ids, include: true
|
||||
attributes :open, :name, :lat, :lng, :time_zone, :address, :house_number, :house_number_addition, :postal_code, :city, :country,
|
||||
:facebook_promotion_url, :iens_profile, :week_starts_on_monday, :orders_in_process_count, :orders_placed_count
|
||||
end
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class JoinRequestSerializer < Qwaiter::Serializer
|
||||
embed :ids, include: true
|
||||
attributes :list_id
|
||||
has_one :user, serializer: UserUserSerializer
|
||||
end
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class OrderSerializer < Qwaiter::Serializer
|
||||
embed :ids, include: true
|
||||
attributes :state, :list_id, :section_id, :table_id #, :price
|
||||
|
||||
has_many :product_orders
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class ProductCategorySerializer < Qwaiter::Serializer
|
||||
embed :ids, include: true
|
||||
attributes :name, :supplier_id, :active_on_sunday, :active_on_monday, :active_on_tuesday, :active_on_wednesday,
|
||||
:active_on_thursday, :active_on_friday, :active_on_saturday, :full_day, :start_from, :end_on,
|
||||
:position
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# Used for user ember1
|
||||
class ProductOrderSerializer < Qwaiter::Serializer
|
||||
embed :ids
|
||||
attributes :order_id, :product_id, :quantity, :price, :product_name
|
||||
end
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class ProductSerializer < Qwaiter::Serializer
|
||||
embed :ids, include: true
|
||||
attributes :name, :price, :description, :image, :code, :position, :visible, :product_category_id
|
||||
|
||||
def image
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class SectionSerializer < Qwaiter::Serializer
|
||||
embed :ids, include: true
|
||||
attributes :title, :path, :width, :height
|
||||
has_many :tables
|
||||
end
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class SupplierExtendedListSerializer < Qwaiter::Serializer
|
||||
# user ids for facebook pictures
|
||||
embed :ids, include: true
|
||||
root 'list'
|
||||
attributes :state, :needs_help, :needs_payment, :user_requests_closing, :is_paid, :price, :table_id, :section_id, :supplier_id, :closed_at #, :has_active_orders
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
class SupplierListSerializer < Qwaiter::Serializer
|
||||
# user ids for facebook pictures
|
||||
self.root = :list
|
||||
embed :ids, include: true
|
||||
attributes :extended_version, :state, :needs_help, :needs_payment, :user_requests_closing, :is_paid, :price,
|
||||
:table_id, :table_number, :section_id, :user_ids, :supplier_id, :closed_at
|
||||
has_many :orders
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class SupplierTableSerializer < Qwaiter::Serializer
|
||||
self.root = :table
|
||||
embed :ids, include: true
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :needs_help
|
||||
has_one :supplier, serializer: Suppliers::SupplierSerializer
|
||||
end
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class Suppliers::ExtendedSectionSerializer < Qwaiter::Serializer
|
||||
root 'section'
|
||||
embed :ids, include: true
|
||||
attributes :title, :path, :width, :height
|
||||
has_many :tables, serializer: Suppliers::ExtendedTableSerializer
|
||||
end
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class Suppliers::ExtendedTableSerializer < Qwaiter::Serializer
|
||||
root 'table'
|
||||
embed :ids, include: true
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id#, :active_list_id
|
||||
|
||||
#def list_id
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class Suppliers::SupplierSerializer < Qwaiter::Serializer
|
||||
self.root = :supplier
|
||||
embed :ids, include: true
|
||||
attributes :extended_version, :open, :name, :lat, :lng, :time_zone, :address, :house_number, :house_number_addition, :postal_code, :city, :country,
|
||||
:facebook_promotion_url, :iens_profile, :week_starts_on_monday, :orders_in_process_count, :orders_placed_count
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class TableSerializer < Qwaiter::Serializer
|
||||
embed :ids, include: true
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied #, :alist_id
|
||||
|
||||
#def list_id
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
class UserExtendedListSerializer < Qwaiter::Serializer
|
||||
# user ids for facebook pictures
|
||||
self.root = :list
|
||||
embed :ids, include: true
|
||||
attributes :extended_version, :state, :needs_help, :needs_payment, :user_requests_closing, :is_paid, :price,
|
||||
:table_id, :table_number, :section_id, :user_ids, :supplier_id, :closed_at
|
||||
#:supplier_orders_in_process_count, :supplier_orders_placed_count
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class UserExtendedSupplierSerializer < Qwaiter::Serializer
|
||||
self.root = :supplier
|
||||
embed :ids, include: true
|
||||
attributes :extended_version, :open, :name, :orders_in_process_count, :orders_placed_count
|
||||
has_many :product_categories
|
||||
#has_many :products only product in category!!!!!!
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class UserExtendedTableSerializer < Qwaiter::Serializer
|
||||
self.root = :table
|
||||
embed :ids, include: true
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :occupied, :needs_help
|
||||
has_one :supplier, serializer: UserExtendedSupplierSerializer
|
||||
end
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
class UserListSerializer < Qwaiter::Serializer
|
||||
# user ids for facebook pictures
|
||||
embed :ids, include: true
|
||||
attributes :state, :needs_help, :needs_payment, :user_requests_closing,
|
||||
:is_paid, :price, :table_id, :table_number, :section_id, :user_ids,
|
||||
:cached_supplier_name, :closed_at, :supplier_id, :extended_version
|
||||
|
||||
Reference in New Issue
Block a user