From: Tom Hughes Date: Sat, 1 Sep 2007 06:48:59 +0000 (+0000) Subject: Get the timestamp outside the transactionso everything can see it. X-Git-Tag: live~8188 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/603d1be4bdb849b4ab1afb53d29a2f59d06d150f?hp=b948dd6d52afae8a9a76c228c16769dabaecc761 Get the timestamp outside the transactionso everything can see it. --- diff --git a/app/models/way.rb b/app/models/way.rb index 8474bcb38..c65119235 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -143,8 +143,9 @@ class Way < ActiveRecord::Base end def save_with_history! + t = Time.now + Way.transaction do - t = Time.now self.timestamp = t self.save! end