projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b948dd6
)
Get the timestamp outside the transactionso everything can see it.
author
Tom Hughes
<tom@compton.nu>
Sat, 1 Sep 2007 06:48:59 +0000
(06:48 +0000)
committer
Tom Hughes
<tom@compton.nu>
Sat, 1 Sep 2007 06:48:59 +0000
(06:48 +0000)
app/models/way.rb
patch
|
blob
|
history
diff --git
a/app/models/way.rb
b/app/models/way.rb
index 8474bcb38b589e6f7132f06ac99f44b8beae8382..c65119235372875d120c28f816e27dd3beb76ac6 100644
(file)
--- 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