app/controllers/sessions_controller.rb
# Invalidate the rvs api-key and return true/false if succeeded
Invalidate the rvs api-key and return true/false if succeeded
Invalidate the rvs api - key and return true / false if succeeded
def disconnect
    if @user = User.find_by_gamebus_id(params[:userid])
      render json: @user.rvs_disconnect
    else
      render json: false
    end
  end
def disconnect if @user = User . find_by_gamebus_id ( params [ :userid ] ) render json : @user . rvs_disconnect else render json : false end end
Invalidate the rvs api-key and return true/false if succeeded
Invalidate the rvs api - key and return true / false if succeeded