Sha256: d2ab821e022ceb9c966e7634df24511f729409d308eb606bbe13e405eb374c48

Contents?: true

Size: 1 KB

Versions: 5

Compression:

Stored size: 1 KB

Contents

# frozen_string_literal: true
module Hyrax
  module Transactions
    ##
    # A transaction for destroying a Hyrax Work.
    #
    # @note This is an experimental replacement for the actor stack's `#destroy`
    #   stack. In time, we hope this will have feature parity with that stack,
    #   along with improved architecture, error handling, readability, and
    #   customizability. While this develops, please provide feedback.
    #
    # @since 3.0.0
    #
    # @see https://dry-rb.org/gems/dry-transaction/
    #
    # @deprecated Development on Dry::Transaction has been discontinued, we're
    #   removing existing transactions and replacing them with Dry::Monad-based
    #   valkyrie versions.
    # @see Hyrax::Transactions::WorkDestroy
    class DestroyWork
      include Dry::Transaction(container: Hyrax::Transactions::Container)

      # DO NOT USE - This class is deprecated.  See Hyrax::Transactions::WorkDestroy for resource works.

      step :destroy_work, with: 'work.destroy_work'
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hyrax-3.6.0 lib/hyrax/transactions/destroy_work.rb
hyrax-3.5.0 lib/hyrax/transactions/destroy_work.rb
hyrax-3.4.2 lib/hyrax/transactions/destroy_work.rb
hyrax-3.4.1 lib/hyrax/transactions/destroy_work.rb
hyrax-3.4.0 lib/hyrax/transactions/destroy_work.rb