app/models/concerns/with_admin_policy.rb
def copy_admin_policy_to_files!
    return unless respond_to?(:file_sets)
    file_sets.each do |fs|
      fs.admin_policy_id = admin_policy_id
      fs.save!
    end
  end
# Copy the policy of the parent work to its attached files
Copy the policy of the parent work to its attached files
Copy the policy of the parent work to its attached files
def copy_admin_policy_to_files!
    return unless respond_to?(:file_sets)
    file_sets.each do |fs|
      fs.admin_policy_id = admin_policy_id
      fs.save!
    end
  end
def copy_admin_policy_to_files! return unless respond_to? ( :file_sets ) file_sets . each do | fs | fs . admin_policy_id = admin_policy_id fs . save! end end
Copy the policy of the parent work to its attached files
Copy the policy of the parent work to its attached files