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



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.

Parameters:

Returns:

  • (Boolean)

    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.

Parameters:

Returns:

  • (Boolean)

    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