Sha256: 58edb9c2de4d52ec7b8ae16d08c0a82c53dd8a57ae57789eaa0de6fafb202b6c

Contents?: true

Size: 474 Bytes

Versions: 12

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true
require 'hyrax/transactions/transaction'

module Hyrax
  module Transactions
    ##
    # Destroys a work resource
    #
    # @since 3.0.0
    class WorkDestroy < Transaction
      DEFAULT_STEPS = ['work_resource.delete',
                       'work_resource.delete_acl'].freeze

      ##
      # @see Hyrax::Transactions::Transaction
      def initialize(container: Container, steps: DEFAULT_STEPS)
        super
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyrax-5.0.0.rc1 lib/hyrax/transactions/work_destroy.rb
hyrax-3.6.0 lib/hyrax/transactions/work_destroy.rb
hyrax-4.0.0 lib/hyrax/transactions/work_destroy.rb
hyrax-4.0.0.rc3 lib/hyrax/transactions/work_destroy.rb
hyrax-4.0.0.rc2 lib/hyrax/transactions/work_destroy.rb
hyrax-4.0.0.rc1 lib/hyrax/transactions/work_destroy.rb
hyrax-3.5.0 lib/hyrax/transactions/work_destroy.rb
hyrax-4.0.0.beta2 lib/hyrax/transactions/work_destroy.rb
hyrax-3.4.2 lib/hyrax/transactions/work_destroy.rb
hyrax-4.0.0.beta1 lib/hyrax/transactions/work_destroy.rb
hyrax-3.4.1 lib/hyrax/transactions/work_destroy.rb
hyrax-3.4.0 lib/hyrax/transactions/work_destroy.rb