Class: Hyrax::Actors::FeaturedWorkActor
- Inherits:
-
AbstractActor
- Object
- AbstractActor
- Hyrax::Actors::FeaturedWorkActor
- Defined in:
- app/actors/hyrax/actors/featured_work_actor.rb
Overview
Removes featured works if the work is deleted or becomes private
Instance Attribute Summary
Attributes inherited from AbstractActor
Instance Method Summary collapse
-
#destroy(env) ⇒ Boolean
True if destroy was successful.
-
#update(env) ⇒ Boolean
True if update was successful.
Methods inherited from AbstractActor
Constructor Details
This class inherits a constructor from Hyrax::Actors::AbstractActor
Instance Method Details
#destroy(env) ⇒ Boolean
Returns true if destroy was successful.
9 10 11 12 |
# File 'app/actors/hyrax/actors/featured_work_actor.rb', line 9 def destroy(env) cleanup_featured_works(env.curation_concern) next_actor.destroy(env) end |
#update(env) ⇒ Boolean
Returns true if update was successful.
16 17 18 19 |
# File 'app/actors/hyrax/actors/featured_work_actor.rb', line 16 def update(env) check_featureability(env.curation_concern) next_actor.update(env) end |