diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2011-10-26 18:20:12 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2011-10-26 18:20:12 +0100 |
commit | 0d0176c4ffe5c58fd1002efbd8f7bd45a8872e33 (patch) | |
tree | 0c0807a6690d5a645d157dcd6f7f83c955bc2f2c /activerecord/lib/active_record | |
parent | a89d16b39b2af5276154d06e349b6a8705e13868 (diff) | |
download | rails-0d0176c4ffe5c58fd1002efbd8f7bd45a8872e33.tar.gz rails-0d0176c4ffe5c58fd1002efbd8f7bd45a8872e33.tar.bz2 rails-0d0176c4ffe5c58fd1002efbd8f7bd45a8872e33.zip |
Allow instances to disable record_timestamps
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/timestamp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/timestamp.rb b/activerecord/lib/active_record/timestamp.rb index 4d5e469a7f..0c760e9850 100644 --- a/activerecord/lib/active_record/timestamp.rb +++ b/activerecord/lib/active_record/timestamp.rb @@ -33,7 +33,7 @@ module ActiveRecord extend ActiveSupport::Concern included do - class_attribute :record_timestamps, :instance_writer => false + class_attribute :record_timestamps self.record_timestamps = true end |