lib/hydra/works/services/add_file_to_file_set.rb
# Persist a new file with its containing file set; otherwise, just save the file itself
Persist a new file with its containing file set; otherwise, just save the file itself
Persist a new file with its containing file set ; otherwise just save the file itself
def persist
          if current_file.new_record?
            file_set.save
          else
            current_file.save
          end
        end
def persist if current_file . new_record? file_set . save else current_file . save end end
Persist a new file with its containing file set; otherwise, just save the file itself
Persist a new file with its containing file set ; otherwise just save the file itself