Sha256: e90779caaf9dcf5f08fccd962286fd3398e917f373ed1e244889e752d156c968
Contents?: true
Size: 399 Bytes
Versions: 6
Compression:
Stored size: 399 Bytes
Contents
class IamController < ApplicationController def log_in_as account = Iam::Configuration.account_class.constantize.find(params[:id]) sign_in Iam::Configuration.account_class.downcase, account account_attributes = account.attributes.slice(*Iam::Configuration.account_attributes).values.join(' ') render json: { notice: "Successfully logged in as:\n#{account_attributes}" } end end
Version data entries
6 entries across 6 versions & 1 rubygems