app/models/adhoq/execution.rb in adhoq-1.0.0 vs app/models/adhoq/execution.rb in adhoq-1.0.1

- old
+ new

@@ -7,14 +7,14 @@ delegate :supported_formats, to: Adhoq::Reporter def generate_report! build_report.generate! - update_attributes(status: :success) + update(status: :success) rescue => e Rails.logger.error(e) self.report = nil - update_attributes(status: :failure) + update(status: :failure) end def name [query.name, created_at.strftime('%Y%m%d-%H%M%S'), report_format].join('.') end