From 603d1be4bdb849b4ab1afb53d29a2f59d06d150f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 1 Sep 2007 06:48:59 +0000 Subject: [PATCH] Get the timestamp outside the transactionso everything can see it. --- app/models/way.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.43.2