aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/timestamp.rb
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2006-08-07 06:54:22 +0000
committerMarcel Molina <marcel@vernix.org>2006-08-07 06:54:22 +0000
commit883c54a3173a39c3e0afaeb85c4b5537590201e8 (patch)
treebecfd17e4a6cff96e1f0cda54d4e1695928efcdf /activerecord/lib/active_record/timestamp.rb
parentd63f6b9bdda2c20a9353ba5ab741396fbfa4ee3e (diff)
downloadrails-883c54a3173a39c3e0afaeb85c4b5537590201e8.tar.gz
rails-883c54a3173a39c3e0afaeb85c4b5537590201e8.tar.bz2
rails-883c54a3173a39c3e0afaeb85c4b5537590201e8.zip
Add documentation for how to disable timestamps on a per model basis. Closes #5684. [matt@mattmargolis.net Marcel Molina Jr.]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4706 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/timestamp.rb')
-rw-r--r--activerecord/lib/active_record/timestamp.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/timestamp.rb b/activerecord/lib/active_record/timestamp.rb
index e271ed3dc4..e20882d867 100644
--- a/activerecord/lib/active_record/timestamp.rb
+++ b/activerecord/lib/active_record/timestamp.rb
@@ -5,6 +5,15 @@ module ActiveRecord
# Timestamping can be turned off by setting
# <tt>ActiveRecord::Base.record_timestamps = false</tt>
#
+ # Keep in mind that, via inheritance, you can turn off timestamps on a per
+ # model basis by setting <tt>record_timestamps</tt> to false in the desired
+ # models.
+ #
+ # class Feed < ActiveRecord::Base
+ # self.record_timestamps = false
+ # # ...
+ # end
+ #
# Timestamps are in the local timezone by default but can use UTC by setting
# <tt>ActiveRecord::Base.default_timezone = :utc</tt>
module Timestamp