app/jobs/graduation_job.rb
# Completely remove an embargo, leaving the embargo_history unchanged
Completely remove an embargo, leaving the embargo_history unchanged
Completely remove an embargo leaving the embargo_history unchanged
def delete_embargo
    if @work.embargo
      @work.embargo.delete
      @work.save
    end
    @work.file_sets.each do |fs|
      next unless fs.embargo
      fs.embargo.delete
      fs.visibility = PUBLIC
      fs.save
    end
  end
def delete_embargo if @work . embargo @work . embargo . delete @work . save end @work . file_sets . each do | fs | next unless fs . embargo fs . embargo . delete fs . visibility = PUBLIC fs . save end end
Completely remove an embargo, leaving the embargo_history unchanged
Completely remove an embargo leaving the embargo_history unchanged