ActiveRecord uses allocate instead of initialize when you find a records from the database. It does this for performance reasons and also for data integrity.
Please see http://gr-ruby.org/2006/1/18/activerecord-instantiation-magic
Zach
ActiveRecord uses allocate instead of initialize when you find a records from the database. It does this for performance reasons and also for data integrity.
Please see http://gr-ruby.org/2006/1/18/activerecord-instantiation-magic
Zach