On May 9, 2006, at 6:12 PM, Jonathan Viney wrote:
I agree that seems odd. I can't see any reason not to use read_attribute there, as it will type cast if necessary. define_read_method could be simplified and Column#type_cast_code should be unnecesary.... perhaps.
Inline type casting tailored to each attribute's column type is faster than does-it-all read_attribute. It's for performance alone: you may disable generated readers with no loss of functionality (though you may consider generating your own..)
jeremy _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core