Sha256: f2336845baa5ca3218964cd38750a7ffa45f8d846fac50e3f8181dc2d2dfc88a
Contents?: true
Size: 370 Bytes
Versions: 4
Compression:
Stored size: 370 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 name = Iam::Configuration.account_attributes.map{ |key| account.public_send(key)}.join(' ') render json: { notice: I18n.t('iam.success', name: name) } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
iam-0.1.4 | app/controllers/iam_controller.rb |
iam-0.1.3 | app/controllers/iam_controller.rb |
iam-0.1.2 | app/controllers/iam_controller.rb |
iam-0.1.1 | app/controllers/iam_controller.rb |