Class: Sufia::DefaultAdminSetActor
- Inherits:
-
CurationConcerns::Actors::AbstractActor
- Object
- CurationConcerns::Actors::AbstractActor
- Sufia::DefaultAdminSetActor
- Defined in:
- app/actors/sufia/default_admin_set_actor.rb
Overview
Ensures that the default AdminSet id is set if this form doesn’t have an admin_set_id provided. This should come before the CurationConcerns::Actors::InitializeWorkflowActor, so that the correct workflow can be kicked off.
Instance Method Summary collapse
Instance Method Details
#create(attributes) ⇒ Object
7 8 9 10 |
# File 'app/actors/sufia/default_admin_set_actor.rb', line 7 def create(attributes) ensure_admin_set_attribute!(attributes) next_actor.create(attributes) end |
#update(attributes) ⇒ Object
12 13 14 15 |
# File 'app/actors/sufia/default_admin_set_actor.rb', line 12 def update(attributes) ensure_admin_set_attribute!(attributes) next_actor.update(attributes) end |