Class: Hyrax::Forms::Permission

Inherits:
ChangeSet
  • Object
show all
Defined in:
app/forms/hyrax/forms/permission.rb

Overview

Note:

due to historical oddities with Hydra::AccessControls and Hydra Editor, Hyrax’s views rely on ‘agent_name` and `access` as field names. we provide these as virtual fields and prepopulate these from `Hyrax::Permission`.

Nested form for permissions.

Instance Method Summary collapse

Methods inherited from ChangeSet

for

Instance Method Details

#to_hashObject

Note:

support a #to_hash method for compatibility with Hydra::AccessControl::Permissions



18
19
20
# File 'app/forms/hyrax/forms/permission.rb', line 18

def to_hash
  { name: agent_name, access: access }
end