Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use Time.zone.new for deleted_at timestamp.
Signed-off-by: Rich Cavanaugh <rcavanaugh@mac.com>
  • Loading branch information
martinh authored and rich committed Sep 19, 2009
1 parent 249cd0d commit 1619584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_revisable/acts/deletable.rb
Expand Up @@ -8,7 +8,7 @@ def self.included(base)
end

def destroy
now = Time.now
now = Time.zone.now

prev = self.revisions.first
self.revisable_deleted_at = now
Expand Down

0 comments on commit 1619584

Please sign in to comment.