edited order
This commit is contained in:
@@ -93,18 +93,13 @@ class Api::OrdersController < Api::ApiController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# for parallel order
|
@status, @booking = @order.generate
|
||||||
|
# # for parallel order
|
||||||
# i = 0
|
# remoteIP = ""
|
||||||
remoteIP = ""
|
# begin
|
||||||
begin
|
# @status, @booking = @order.generate
|
||||||
@status, @booking = @order.generate
|
# remoteIP = request.remote_ip
|
||||||
# i += 1
|
# end while request.remote_ip != remoteIP
|
||||||
puts "RRR"
|
|
||||||
puts @booking.booking_id
|
|
||||||
puts request.remote_ip
|
|
||||||
remoteIP = request.remote_ip
|
|
||||||
end while request.remote_ip != remoteIP
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# render json for http status code
|
# render json for http status code
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ module SXRestaurants
|
|||||||
# Settings in config/environments/* take precedence over those specified here.
|
# Settings in config/environments/* take precedence over those specified here.
|
||||||
# Application configuration should go into files in config/initializers
|
# Application configuration should go into files in config/initializers
|
||||||
# -- all .rb files in that directory are automatically loaded.
|
# -- all .rb files in that directory are automatically loaded.
|
||||||
config.i18n.default_locale = :'mm' # English 'en'
|
config.i18n.default_locale = :'en' # English 'en'
|
||||||
|
|
||||||
config.active_record.time_zone_aware_types = [:datetime, :time]
|
config.active_record.time_zone_aware_types = [:datetime, :time]
|
||||||
config.active_job.queue_adapter = :sidekiq
|
config.active_job.queue_adapter = :sidekiq
|
||||||
|
|||||||
Reference in New Issue
Block a user