Class: Hyrax::Actors::TransactionalRequest

Inherits:
AbstractActor show all
Defined in:
app/actors/hyrax/actors/transactional_request.rb

Overview

Used to wrap the stack in a database transaction. This would have rolled back any database actions (particularly workflow) if there is an error elsewhere in the actor stack. This was problematic, is removed in v3.0, and is currently a no-op Backport of github.com/samvera/hyrax/pull/3482

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

rubocop:disable Rails/Delegate

Parameters:

Returns:

  • (Boolean)

    true if create was successful



12
13
14
# File 'app/actors/hyrax/actors/transactional_request.rb', line 12

def create(env)
  next_actor.create(env)
end

#update(env) ⇒ Boolean

Returns true if update was successful.

Parameters:

Returns:

  • (Boolean)

    true if update was successful



18
19
20
# File 'app/actors/hyrax/actors/transactional_request.rb', line 18

def update(env)
  next_actor.update(env)
end