Sha256: 15e1f207f4ceb7123927b8a9e79d691f946a2b643400cac39a27ef45f1d22004
Contents?: true
Size: 657 Bytes
Versions: 51
Compression:
Stored size: 657 Bytes
Contents
require_dependency "think_feel_do_engine/application_controller" module ThinkFeelDoEngine # Authenticate user class KeepAliveController < ApplicationController before_action :authenticated_participant_or_user? # GET /arms def index if @authenticated render nothing: true, status: :ok else render nothing: true, status: :unauthorized end end private def authenticated_participant_or_user? if current_user authenticate_user! @authenticated = true elsif current_participant authenticate_participant! @authenticated = true end end end end
Version data entries
51 entries across 51 versions & 1 rubygems