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



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.

Parameters:

Returns:

  • (Boolean)

    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.

Parameters:

Returns:

  • (Boolean)

    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