Module: Hydra::Ability::ClassMethods
- Defined in:
- lib/hydra/ability.rb
Instance Method Summary collapse
- #edit_group_field ⇒ Object
- #edit_person_field ⇒ Object
- #edit_user_field ⇒ Object
- #read_group_field ⇒ Object
- #read_person_field ⇒ Object
- #read_user_field ⇒ Object
Instance Method Details
#edit_group_field ⇒ Object
176 177 178 |
# File 'lib/hydra/ability.rb', line 176 def edit_group_field Hydra.config..edit.group end |
#edit_person_field ⇒ Object
158 159 160 161 |
# File 'lib/hydra/ability.rb', line 158 def edit_person_field Deprecation.warn(Ability, "The edit_person_field class method is deprecated and will be removed from Hydra::Ability in hydra-head 8.0. Use edit_user_field instead.", caller) edit_user_field end |
#edit_user_field ⇒ Object
163 164 165 |
# File 'lib/hydra/ability.rb', line 163 def edit_user_field Hydra.config..edit.individual end |
#read_group_field ⇒ Object
154 155 156 |
# File 'lib/hydra/ability.rb', line 154 def read_group_field Hydra.config..read.group end |
#read_person_field ⇒ Object
167 168 169 170 |
# File 'lib/hydra/ability.rb', line 167 def read_person_field Deprecation.warn(Ability, "The read_person_field class method is deprecated and will be removed from Hydra::Ability in hydra-head 8.0. Use read_user_field instead.", caller) read_user_field end |
#read_user_field ⇒ Object
172 173 174 |
# File 'lib/hydra/ability.rb', line 172 def read_user_field Hydra.config..read.individual end |