This project is archived and is in readonly mode.

#1949 ✓invalid
Paul

STI derived class needs self.record_timestamps = true

Reported by Paul | February 12th, 2009 @ 10:06 AM | in 2.x

i am using 2.1.2 for now and i needed to add self.record_timestamps = true to the derived class.

The statement base.record_timestamps = true within ActiveRecord::Timestamp seems to be visible within the base class only.

class Foo < ActiveRecord::Base

STI Base Model class with timestamns

end

class Bar < Foo

STI Derived class

self.record_timestamps = true # will not work without this end

If this is a wontfix or it is fixed already excuse the noise..

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages