edited order

This commit is contained in:
Yan
2017-10-20 17:06:34 +06:30
parent ba39284f93
commit 8ceaf8be05
2 changed files with 8 additions and 13 deletions

View File

@@ -93,18 +93,13 @@ class Api::OrdersController < Api::ApiController
end
end
# for parallel order
# i = 0
remoteIP = ""
begin
@status, @booking = @order.generate
# i += 1
puts "RRR"
puts @booking.booking_id
puts request.remote_ip
remoteIP = request.remote_ip
end while request.remote_ip != remoteIP
@status, @booking = @order.generate
# # for parallel order
# remoteIP = ""
# begin
# @status, @booking = @order.generate
# remoteIP = request.remote_ip
# end while request.remote_ip != remoteIP
end
# render json for http status code

View File

@@ -13,7 +13,7 @@ module SXRestaurants
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- 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_job.queue_adapter = :sidekiq