app/models/myreplicator/export.rb in myreplicator-1.1.1 vs app/models/myreplicator/export.rb in myreplicator-1.1.2
- old
+ new
@@ -37,10 +37,14 @@
def self.perform(export_id, *args)
options = args.extract_options!
ActiveRecord::Base.verify_active_connections!
ActiveRecord::Base.connection.reconnect!
export_obj = Export.find(export_id)
- export_obj.export
+
+ if export_obj.active
+ export_obj.export
+ end
+
end
##
# Runs the export process using the required Exporter library
##