lib/deimos/utils/db_poller.rb in deimos-ruby-1.8.4 vs lib/deimos/utils/db_poller.rb in deimos-ruby-1.8.5
- old
+ new
@@ -140,10 +140,11 @@
record = batch.last
id_method = record.class.primary_key
last_id = record.public_send(id_method)
last_updated_at = last_updated(record)
@producer.send_events(batch)
- @info.update_attributes!(last_sent: last_updated_at, last_sent_id: last_id)
+ @info.attributes = { last_sent: last_updated_at, last_sent_id: last_id }
+ @info.save!
end
end
end
end