Module: Hydra::GenericUserAttributes

Defined in:
vendor/plugins/hydra_repository/lib/hydra/generic_user_attributes.rb

Constant Summary

USER_ATTRIBUTES =
['first_name','last_name','full_name','affiliation','photo']

Instance Attribute Summary (collapse)

Instance Attribute Details

- (Object) user_attributes

Retrieves the UserAttribute object for the user. This defaults to the packaged ActiveRecord object, but can be overwritten with #user_attributes=

Returns:

  • an object containing the user’s attributes. If providing a localized class, be sure to include the default attributes of first_name, last_name, full_name, affiliation and photo.



19
20
21
# File 'vendor/plugins/hydra_repository/lib/hydra/generic_user_attributes.rb', line 19

def user_attributes
  @user_attributes ||= user_attribute
end