Sha256: 4f026e1b147ed30714bc852a6536710eff46a6f4cbe9e6adf2280e08e1a522f3
Contents?: true
Size: 687 Bytes
Versions: 13
Compression:
Stored size: 687 Bytes
Contents
# frozen_string_literal: true 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
13 entries across 13 versions & 1 rubygems