Sha256: 8be47ec112f324cd5fc54e22e324bb43b9bced1288891da5f3222512815bccc0
Contents?: true
Size: 575 Bytes
Versions: 3
Compression:
Stored size: 575 Bytes
Contents
module PgEngine class BasePublicController < ApplicationController before_action do Current.namespace = :public end # :nocov: def login_as # TODO!: make a POST route return head :bad_request unless dev_user_or_env? Current.namespace = nil usuario = User.find(params[:id]) if usuario.confirmed_at.present? sign_in(:user, usuario) # redirect_to after_sign_in_path_for(usuario) redirect_to user_root_path else go_back('No está confirmado') end end # :nocov: end end
Version data entries
3 entries across 3 versions & 1 rubygems