Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source
Show
Ignore:
Timestamp:
11/26/07 22:45:03 (1 year 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/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