aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-11-26 22:45:03 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-11-26 22:45:03 +0000
commit1370d1578727bdbfee06ccdf2109e8ca5649a652 (patch)
treea7a40ce54a1406dbed0f541b736d86264ee394a1 /activerecord/lib
parent5e94f053cb52bac19bb0d5bb41bc52113c5a2078 (diff)
downloadrails-1370d1578727bdbfee06ccdf2109e8ca5649a652.tar.gz
rails-1370d1578727bdbfee06ccdf2109e8ca5649a652.tar.bz2
rails-1370d1578727bdbfee06ccdf2109e8ca5649a652.zip
Make the record_timestamps class-inheritable so it can be set per model. References #10004.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8217 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/timestamp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/timestamp.rb b/activerecord/lib/active_record/timestamp.rb
index ee3e426512..84ae3785a2 100644
--- a/activerecord/lib/active_record/timestamp.rb
+++ b/activerecord/lib/active_record/timestamp.rb
@@ -12,7 +12,7 @@ module ActiveRecord
base.alias_method_chain :create, :timestamps
base.alias_method_chain :update, :timestamps
- base.cattr_accessor :record_timestamps, :instance_writer => false
+ base.class_inheritable_accessor :record_timestamps, :instance_writer => false
base.record_timestamps = true
end