Method: Orcid.profile_for
- Defined in:
- lib/orcid.rb
.profile_for(user) ⇒ Object
71 72 73 74 |
# File 'lib/orcid.rb', line 71 def profile_for(user) auth = authentication_model.where(provider: 'orcid', user: user).first auth && Orcid::Profile.new(auth.uid) end |