Class: CurationConcerns::Actors::InterpretVisibilityActor
- Inherits:
-
AbstractActor
- Object
- AbstractActor
- CurationConcerns::Actors::InterpretVisibilityActor
- Defined in:
- app/actors/curation_concerns/actors/interpret_visibility_actor.rb
Overview
Defined Under Namespace
Classes: Intention
Instance Attribute Summary
Attributes inherited from AbstractActor
Instance Method Summary collapse
Methods inherited from AbstractActor
Constructor Details
This class inherits a constructor from CurationConcerns::Actors::AbstractActor
Instance Method Details
#create(attributes) ⇒ Object
70 71 72 73 74 |
# File 'app/actors/curation_concerns/actors/interpret_visibility_actor.rb', line 70 def create(attributes) @intention = Intention.new(attributes) attributes = @intention.sanitize_params validate && apply_visibility(attributes) && next_actor.create(attributes) end |
#update(attributes) ⇒ Object
76 77 78 79 80 |
# File 'app/actors/curation_concerns/actors/interpret_visibility_actor.rb', line 76 def update(attributes) @intention = Intention.new(attributes) attributes = @intention.sanitize_params validate && apply_visibility(attributes) && next_actor.update(attributes) end |