aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/history.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-27 11:51:47 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-27 11:51:47 +0000
commit11999e9c25d237bae2b6eb51ed20e63b2db9c2c7 (patch)
tree5aeb8c9ab561a6e076ff63aeb5f3fdc4c9714b84 /lib/mauve/history.rb
parent791abff5faabfc14568cdcaf0be553eb05947372 (diff)
Be more picky when setting updated_at/created_at timestamps.
Diffstat (limited to 'lib/mauve/history.rb')
-rw-r--r--lib/mauve/history.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/history.rb b/lib/mauve/history.rb
index bcdd41a..1e683d2 100644
--- a/lib/mauve/history.rb
+++ b/lib/mauve/history.rb
@@ -111,7 +111,7 @@ module Mauve
# Update the created_at time on the object
#
def do_set_created_at(context = :default)
- self.created_at = Time.now unless self.created_at.is_a?(Time)
+ self.created_at = Time.now if self.new?
end
public