Class: Hyrax::Actors::ModelActor
- Inherits:
-
AbstractActor
- Object
- AbstractActor
- Hyrax::Actors::ModelActor
- Defined in:
- app/actors/hyrax/actors/model_actor.rb
Overview
This is a proxy for the model specific actor
Instance Attribute Summary
Attributes inherited from AbstractActor
Instance Method Summary collapse
-
#create(env) ⇒ Boolean
True if create was successful.
-
#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
#create(env) ⇒ Boolean
Returns true if create was successful.
16 17 18 |
# File 'app/actors/hyrax/actors/model_actor.rb', line 16 def create(env) model_actor(env).create(env) end |
#destroy(env) ⇒ Boolean
Returns true if destroy was successful.
22 23 24 |
# File 'app/actors/hyrax/actors/model_actor.rb', line 22 def destroy(env) model_actor(env).destroy(env) end |
#update(env) ⇒ Boolean
Returns true if update was successful.
10 11 12 |
# File 'app/actors/hyrax/actors/model_actor.rb', line 10 def update(env) model_actor(env).update(env) end |