merge with origin master

This commit is contained in:
Yan
2017-06-30 13:39:52 +06:30
16 changed files with 220 additions and 96 deletions

View File

@@ -96,14 +96,15 @@ class Api::OrdersController < Api::ApiController
end
end
@status, @booking = @order.generate
@status, @booking = @order.generate
end
# render json for http status code
def return_json_status_with_code(code, msg)
render status: code, json: {
message: msg
}.to_json
message: msg,
booking_id: booking_id
}.to_json
end
def check_order_with_table(table_id)