Module: Billfold::Identity::InstanceMethods
- Included in:
- ActiveRecordIdentity::InstanceMethods
- Defined in:
- lib/billfold/identity.rb
Instance Method Summary collapse
-
#name_for_user ⇒ Object
### Billfold::Identity#name_for_user.
Instance Method Details
#name_for_user ⇒ Object
### Billfold::Identity#name_for_user
When creating a new user from an identity, this method is used to generate a display name. By default, it tries to get the user’s name from the OmniAuth data and falls back on using the identity’s provider and value, but subclasses may have something better to do.
91 92 93 |
# File 'lib/billfold/identity.rb', line 91 def name_for_user (data && data['name']) || "#{provider} #{value}" end |