app/models/export.rb in iqvoc-4.12.1 vs app/models/export.rb in iqvoc-4.13.0
- old
+ new
@@ -1,6 +1,6 @@
-class Export < ActiveRecord::Base
+class Export < ApplicationRecord
belongs_to :user
enum file_type: [:ttl, :nt, :xml]
validates_presence_of :default_namespace
@@ -25,8 +25,8 @@
end
private
def delete_dump_file
- File.delete(build_filename)
+ File.delete(build_filename) if File.exists?(build_filename)
end
end