Sha256: 14a810f6a723c1574276a42608ab9765007b165d5bf2c8f7177977a5af15b7ba
Contents?: true
Size: 369 Bytes
Versions: 14
Compression:
Stored size: 369 Bytes
Contents
module PushType module AuthenticationMethods extend ActiveSupport::Concern included do before_action :authenticate_user! end protected def authenticate_user! if user_signed_in? super else redirect_to push_type_admin.new_user_session_path, alert: t('devise.failure.unauthenticated') end end end end
Version data entries
14 entries across 14 versions & 1 rubygems