edited order
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user