aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2011-12-01 20:45:47 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2011-12-01 20:45:47 +0100
commit83d29a283ceb13ff431da535e8cc35db6828016c (patch)
treeaf4af993955fc0fb0ecfdf96e969eac02bd7c492 /activerecord/lib/active_record
parent535853e83b9092078035a5abb2aa242fba815c05 (diff)
downloadrails-83d29a283ceb13ff431da535e8cc35db6828016c.tar.gz
rails-83d29a283ceb13ff431da535e8cc35db6828016c.tar.bz2
rails-83d29a283ceb13ff431da535e8cc35db6828016c.zip
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.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/base.rb7
1 files changed, 0 insertions, 7 deletions
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