Sha256: dd3bdc1f1e71b5c2df4a81f16951b38a6683988a139ec72a5cc1b5dd5b379ee8

Contents?: true

Size: 211 Bytes

Versions: 48

Compression:

Stored size: 211 Bytes

Contents

module Hyrax
  module WithFileSets
    extend ActiveSupport::Concern
    def copy_visibility_to_files
      file_sets.each do |fs|
        fs.visibility = visibility
        fs.save!
      end
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
hyrax-2.9.6 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.9.5 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.9.4 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.9.3 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.9.2 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.9.1 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.9.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.8.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.7.2 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.7.1 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.7.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.6.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.0.0.pre.rc1 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.0.0.pre.beta3 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.5.1 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.5.0 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.0.0.pre.beta2 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.4.1 app/models/concerns/hyrax/with_file_sets.rb
hyrax-3.0.0.pre.beta1 app/models/concerns/hyrax/with_file_sets.rb
hyrax-2.4.0 app/models/concerns/hyrax/with_file_sets.rb