Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -43,5 +43,5 @@ config/deploy/config/*
|
|||||||
.byebug_history
|
.byebug_history
|
||||||
|
|
||||||
# Gem files
|
# Gem files
|
||||||
Gemfile
|
#Gemfile
|
||||||
Gemfile.lock
|
#Gemfile.lock
|
||||||
|
|||||||
2
Gemfile
2
Gemfile
@@ -12,7 +12,7 @@ gem 'rails', '~> 5.1.0'
|
|||||||
gem 'mysql2', '>= 0.3.18', '< 0.5'
|
gem 'mysql2', '>= 0.3.18', '< 0.5'
|
||||||
|
|
||||||
#Use PosgreSQL
|
#Use PosgreSQL
|
||||||
#gem 'pg'
|
gem 'pg'
|
||||||
|
|
||||||
# redis server for cable
|
# redis server for cable
|
||||||
# gem 'redis', '~> 3.0'
|
# gem 'redis', '~> 3.0'
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ class Api::OrdersController < Api::ApiController
|
|||||||
|
|
||||||
#Create Table Booking or Room Booking
|
#Create Table Booking or Room Booking
|
||||||
if !params["booking_id"].nil? && params[:booking_id].to_i > 0
|
if !params["booking_id"].nil? && params[:booking_id].to_i > 0
|
||||||
@order.new_booking = false
|
#@order.new_booking = false
|
||||||
# @order.new_booking = true
|
@order.new_booking = true
|
||||||
@order.booking_id = params[:booking_id]
|
@order.booking_id = params[:booking_id]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user