Sha256: ee9f54fd56a6ba25e3d813f78cb9f9f69f0e1c12a7a5cbd349abb9b1c3b6f87b

Contents?: true

Size: 628 Bytes

Versions: 14

Compression:

Stored size: 628 Bytes

Contents

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

module Hyrax
  module Transactions
    ##
    # Updates a Collection from a ChangeSet
    #
    # @since 3.2.0
    class CollectionUpdate < Transaction
      DEFAULT_STEPS = ['change_set.apply',
                       'collection_resource.save_collection_banner',
                       'collection_resource.save_collection_logo',
                       'collection_resource.save_acl'].freeze

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hyrax-5.0.1 lib/hyrax/transactions/collection_update.rb
hyrax-5.0.0 lib/hyrax/transactions/collection_update.rb
hyrax-5.0.0.rc3 lib/hyrax/transactions/collection_update.rb
hyrax-5.0.0.rc2 lib/hyrax/transactions/collection_update.rb
hyrax-5.0.0.rc1 lib/hyrax/transactions/collection_update.rb
hyrax-3.6.0 lib/hyrax/transactions/collection_update.rb
hyrax-4.0.0 lib/hyrax/transactions/collection_update.rb
hyrax-4.0.0.rc3 lib/hyrax/transactions/collection_update.rb
hyrax-4.0.0.rc2 lib/hyrax/transactions/collection_update.rb
hyrax-4.0.0.rc1 lib/hyrax/transactions/collection_update.rb
hyrax-3.5.0 lib/hyrax/transactions/collection_update.rb
hyrax-4.0.0.beta2 lib/hyrax/transactions/collection_update.rb
hyrax-3.4.2 lib/hyrax/transactions/collection_update.rb
hyrax-4.0.0.beta1 lib/hyrax/transactions/collection_update.rb