search for: concreteadapt

Displaying 1 result from an estimated 1 matches for "concreteadapt".

Did you mean: concreteadapter
2005 Mar 06
0
ActiveRecord: casting and saving
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....