From 83d29a283ceb13ff431da535e8cc35db6828016c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 1 Dec 2011 20:45:47 +0100 Subject: Revert "Added ActiveRecord::Base#last_modified to work with the new fresh_when/stale? conditional get methods from Action Pack" Needless indirection with no added value. This reverts commit 535853e83b9092078035a5abb2aa242fba815c05. --- activerecord/lib/active_record/base.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index bae2dc738e..76aa121ade 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1702,13 +1702,6 @@ MSG end end - # By default returns the value of the updated_at attribute, but can be overwritten to - # provide another indicator of when this record was last updated. This is used by - # ActionControllers conditional get fresh_when/stale? methods. - def last_modified - self[:updated_at] - end - def quoted_id #:nodoc: quote_value(id, column_for_attribute(self.class.primary_key)) end -- cgit v1.2.3