app/controllers/sessions_controller.rb
# Return true or false if the user is connected
Return true or false if the user is connected
Return true or false if the user is connected
def status
    if @user = User.find_by_gamebus_id(params[:userid])
      render json: @user.rvs_key_valid?
    else
      render json: false
    end
  end
def status if @user = User . find_by_gamebus_id ( params [ :userid ] ) render json : @user . rvs_key_valid? else render json : false end end
Return true or false if the user is connected
Return true or false if the user is connected