app/models/extface/device.rb in extface-0.5.3 vs app/models/extface/device.rb in extface-0.5.4a
- 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)
+ job = jobs.create!(description: description, started_at: Time.now)
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?