app/models/extface/device.rb in extface-0.5.4b vs app/models/extface/device.rb in extface-0.5.4
- old
+ new
@@ -30,10 +30,10 @@
def driver_name
driver_class::NAME if driver_class
end
def session(description = nil)
- job = jobs.create!(description: description, started_at: Time.now)
+ job = jobs.create!(description: description)
job.thread = Thread.new do
Thread.current[:extface_job] = job.id
ActiveRecord::Base.establish_connection unless ActiveRecord::Base.connection.active?
begin
raise 'No driver configured' unless driver.present?