Class: Hyrax::Actors::ModelActor

Inherits:
AbstractActor show all
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

#next_actor

Instance Method Summary collapse

Methods inherited from AbstractActor

#initialize

Constructor Details

This class inherits a constructor from Hyrax::Actors::AbstractActor

Instance Method Details

#create(env) ⇒ Boolean

Returns true if create was successful.

Parameters:

Returns:

  • (Boolean)

    true if create was successful



13
14
15
# File 'app/actors/hyrax/actors/model_actor.rb', line 13

def create(env)
  model_actor(env).create(env)
end

#destroy(env) ⇒ Boolean

Returns true if destroy was successful.

Parameters:

Returns:

  • (Boolean)

    true if destroy was successful



19
20
21
# File 'app/actors/hyrax/actors/model_actor.rb', line 19

def destroy(env)
  model_actor(env).destroy(env)
end

#update(env) ⇒ Boolean

Returns true if update was successful.

Parameters:

Returns:

  • (Boolean)

    true if update was successful



7
8
9
# File 'app/actors/hyrax/actors/model_actor.rb', line 7

def update(env)
  model_actor(env).update(env)
end