Module: Curate::UserBehavior::Base
- Extended by:
- ActiveSupport::Concern
- Included in:
- Curate::UserBehavior
- Defined in:
- app/models/curate/user_behavior/base.rb
Instance Method Summary collapse
- #agree_to_terms_of_service! ⇒ Object
- #collections ⇒ Object
- #get_value_from_ldap(attribute) ⇒ Object
- #name ⇒ Object
Instance Method Details
#agree_to_terms_of_service! ⇒ Object
6 7 8 |
# File 'app/models/curate/user_behavior/base.rb', line 6 def agree_to_terms_of_service! update_column(:agreed_to_terms_of_service, true) end |
#collections ⇒ Object
10 11 12 |
# File 'app/models/curate/user_behavior/base.rb', line 10 def collections Collection.where(Hydra.config[:permissions][:edit][:individual] => user_key) end |
#get_value_from_ldap(attribute) ⇒ Object
14 15 16 |
# File 'app/models/curate/user_behavior/base.rb', line 14 def get_value_from_ldap(attribute) # override end |
#name ⇒ Object
18 19 20 |
# File 'app/models/curate/user_behavior/base.rb', line 18 def name read_attribute(:name) || user_key end |