Current state with 6 failures is considered to be better than the previous one
This commit is contained in:
@@ -124,19 +124,13 @@ class UserController < Users::ApplicationController
|
||||
end
|
||||
end
|
||||
|
||||
# GET /user/join_occupied_table
|
||||
def join_occupied_table
|
||||
#redirect_to user_root_path(message: 'table_not_found') and return unless params[:table_id].present?
|
||||
#@table = Table.find(params[:table_id])
|
||||
end
|
||||
|
||||
# POST /user/join_occupied_table
|
||||
def request_to_join_occupied_table
|
||||
render json: json_alert('messages.table_not_found') and return unless params[:table_id].present?
|
||||
@table = Table.find(params[:table_id])
|
||||
if @list = @table.active_list
|
||||
@list.send_table_join_request_for_user! current_user
|
||||
end
|
||||
end
|
||||
render nothing: true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user