Class: Hyrax::Actors::TransactionalRequest
- Inherits:
-
AbstractActor
- Object
- AbstractActor
- Hyrax::Actors::TransactionalRequest
- 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
Instance Method Summary collapse
-
#create(env) ⇒ Boolean
rubocop:disable Rails/Delegate.
-
#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
rubocop:disable Rails/Delegate
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.
18 19 20 |
# File 'app/actors/hyrax/actors/transactional_request.rb', line 18 def update(env) next_actor.update(env) end |