Module: Hyrax::WithFileSets

Extended by:
ActiveSupport::Concern
Included in:
WorkBehavior
Defined in:
app/models/concerns/hyrax/with_file_sets.rb

Instance Method Summary collapse

Instance Method Details

#copy_visibility_to_filesObject


4
5
6
7
8
9
# File 'app/models/concerns/hyrax/with_file_sets.rb', line 4

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