app/models/extface/job.rb in extface-0.4.4 vs app/models/extface/job.rb in extface-0.4.5
- old
+ new
@@ -18,12 +18,11 @@
!!completed_at
end
def connected!
unless connected?
- p "device connected at #{Time.now}"
self.connected_at = Time.now
- save!
+ save! unless Rails.env.test?
notify("Job #{self.id} device connected!")
end
end
def connected?