Dave Burt
3/6/2005 3:15:00 PM
Hi,
How do numbers become Numeric between a call to
ActiveRecord::Base#update_attributes and when the database is hit by
ConnectionAdapters::ConcreteAdapter#update ?
From what I can see,
@record.update_attributes(@params['record'])
sets fields to string values (which you can get using
Base#read_attribute_before_type_cast), and I can't see read_attribute (which
performs a cast) being used on the way to the database.
Can someone explain this?
Cheers,
Dave