Module: Hydra::Ability::ClassMethods

Defined in:
lib/hydra/ability.rb

Instance Method Summary collapse

Instance Method Details

#discover_group_fieldObject



144
145
146
# File 'lib/hydra/ability.rb', line 144

def discover_group_field
  Hydra.config.permissions.discover.group
end

#discover_user_fieldObject



148
149
150
# File 'lib/hydra/ability.rb', line 148

def discover_user_field
  Hydra.config.permissions.discover.individual
end

#edit_group_fieldObject



140
141
142
# File 'lib/hydra/ability.rb', line 140

def edit_group_field
  Hydra.config.permissions.edit.group
end

#edit_user_fieldObject



132
133
134
# File 'lib/hydra/ability.rb', line 132

def edit_user_field
  Hydra.config.permissions.edit.individual
end

#read_group_fieldObject



128
129
130
# File 'lib/hydra/ability.rb', line 128

def read_group_field
  Hydra.config.permissions.read.group
end

#read_user_fieldObject



136
137
138
# File 'lib/hydra/ability.rb', line 136

def read_user_field
  Hydra.config.permissions.read.individual
end