Get the timestamp outside the transactionso everything can see it.

This commit is contained in:
Tom Hughes 2007-09-01 06:48:59 +00:00
parent b948dd6d52
commit 603d1be4bd

View file

@ -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