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.
17 18 19 |
# File 'app/actors/hyrax/actors/model_actor.rb', line 17 def create(env) model_actor(env).create(env) end |
#destroy(env) ⇒ Boolean
Returns true if destroy was successful.
23 24 25 |
# File 'app/actors/hyrax/actors/model_actor.rb', line 23 def destroy(env) model_actor(env).destroy(env) end |
#update(env) ⇒ Boolean
Returns true if update was successful.
11 12 13 |
# File 'app/actors/hyrax/actors/model_actor.rb', line 11 def update(env) model_actor(env).update(env) end |