Class: Hyrax::ApplyPermissionTemplateActor

Inherits:
Hyrax::Actors::AbstractActor show all
Defined in:
app/actors/hyrax/apply_permission_template_actor.rb

Overview

Responsible for “applying” the various edit and read attributes to the given curation concern.

Instance Attribute Summary

Attributes inherited from Hyrax::Actors::AbstractActor

#next_actor

Instance Method Summary collapse

Methods inherited from Hyrax::Actors::AbstractActor

#initialize

Constructor Details

This class inherits a constructor from Hyrax::Actors::AbstractActor

Instance Method Details

#create(attributes) ⇒ Object



5
6
7
8
# File 'app/actors/hyrax/apply_permission_template_actor.rb', line 5

def create(attributes)
  add_edit_users(attributes)
  next_actor.create(attributes)
end