app/models/extface/device.rb in extface-0.0.5 vs app/models/extface/device.rb in extface-0.0.6
- old
+ new
@@ -37,9 +37,11 @@
STDERR.puts e.message
e.backtrace.each do |line|
p line
end
job.failed! e.message
+ ensure
+ ActiveRecord::Base.connection.close
end
end
job
end
end