Sha256: a64d06b420d86142b49752c27d0f9de573e2cb8c4aa709256c6c256b1db968cf

Contents?: true

Size: 379 Bytes

Versions: 14

Compression:

Stored size: 379 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module WithFileSets
    extend ActiveSupport::Concern

    ##
    # @deprecated Use 'Hyrax::VisibilityPropagator' instead.
    def copy_visibility_to_files
      Deprecation.warn "Use 'Hyrax::VisibilityPropagator' instead."

      file_sets.each do |fs|
        fs.visibility = visibility
        fs.save!
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.5.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.4.2 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.4.1 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.4.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.3.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.2.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.1.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.0.2 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.0.1 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.0.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.0.0.pre.rc4 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.0.0.pre.rc3 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.0.0.pre.rc2 app/models/concerns/hyrax/with_file_sets.rb