Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8217

Show
Ignore:
Timestamp:
11/26/07 22:45:03 (10 months ago)
Author:
bitsweat
Message:

Make the record_timestamps class-inheritable so it can be set per model. References #10004.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/CHANGELOG

    r8208 r8217  
    11*SVN* 
     2 
     3* Make the record_timestamps class-inheritable so it can be set per model.  #10004 [tmacedo] 
    24 
    35* Allow validates_acceptance_of to use a real attribute instead of only virtual (so you can record that the acceptance occured) #7457 [ambethia] 
  • trunk/activerecord/lib/active_record/timestamp.rb

    r8113 r8217  
    1313      base.alias_method_chain :update, :timestamps 
    1414 
    15       base.cattr_accessor :record_timestamps, :instance_writer => false 
     15      base.class_inheritable_accessor :record_timestamps, :instance_writer => false 
    1616      base.record_timestamps = true 
    1717    end