Current state with 6 failures is considered to be better than the previous one

This commit is contained in:
2014-07-31 18:07:06 +02:00
parent 2e7be84a2e
commit c0c25673bf
9 changed files with 50 additions and 13 deletions
+1 -7
View File
@@ -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