lib/dashing.rb in dashing-1.0 vs lib/dashing.rb in dashing-1.0.1
- old
+ new
@@ -79,10 +79,10 @@
ENV['RACK_ENV'] == 'production'
end
def send_event(id, body)
body["id"] = id
- body["updatedAt"] = Time.now
+ body["updatedAt"] = Time.now.to_i
event = format_event(body.to_json)
settings.history[id] = event
settings.connections.each { |out| out << event }
end