Module: Iam::AuthorizationProvider::Devise
- Defined in:
- lib/iam/authorization_provider/devise.rb
Instance Method Summary collapse
- #current_account?(account) ⇒ Boolean
- #log_in_account(account) ⇒ Object
- #log_out_account(account) ⇒ Object
Instance Method Details
#current_account?(account) ⇒ Boolean
12 13 14 |
# File 'lib/iam/authorization_provider/devise.rb', line 12 def current_account?(account) current_user == account end |
#log_in_account(account) ⇒ Object
4 5 6 |
# File 'lib/iam/authorization_provider/devise.rb', line 4 def log_in_account(account) sign_in Iam::Configuration[:account][:class].downcase, account end |
#log_out_account(account) ⇒ Object
8 9 10 |
# File 'lib/iam/authorization_provider/devise.rb', line 8 def log_out_account(account) sign_out account end |