Class: Authentifyd::Authentication
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Authentifyd::Authentication
- Defined in:
- app/models/authentifyd/authentication.rb
Instance Method Summary collapse
Instance Method Details
#displayable_name ⇒ Object
5 6 7 |
# File 'app/models/authentifyd/authentication.rb', line 5 def displayable_name displayable_names(provider).try(:capitalize) end |
#displayable_names(provder) ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/models/authentifyd/authentication.rb', line 9 def displayable_names(provder) case provder when 'google_oauth2' then 'google' else provder end end |