rename qwaiter to mozo
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
class Waiter::ProductCategorySerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
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,6 @@
|
||||
class Waiter::ProductSerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
attributes :name, :price, :description, :code, :position, :visible, :active
|
||||
attribute :image do
|
||||
if object.image.present?
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Waiter::ProductVariantSerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
attributes :name
|
||||
has_one :product, serializer: Waiter::ProductSerializer
|
||||
end
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Waiter::SectionSerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
attributes :title, :width, :height
|
||||
has_many :tables, serializer: Waiter::TableSerializer
|
||||
has_one :supplier, serializer: Waiter::SupplierSerializer
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Waiter::SupplierSerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
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,4 +1,5 @@
|
||||
class Waiter::TableSerializer
|
||||
include Qwaiter::WaiterBaseSerializer
|
||||
include Mozo::WaiterBaseSerializer
|
||||
|
||||
attributes :number, :width, :height, :position_x, :position_y, :section_id, :needs_help, :active
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user