Files | Admin

Notes:

Release Name: REL 0.8.4

Notes:


Changes: _Reflection_ * Added ActiveRecord::Reflection with a bunch of methods and classes for reflecting in aggregations and associations. * Added Base.columns and Base.content_columns which returns arrays of column description (type, default, etc) objects. * Added Base#attribute_names which returns an array of names for the attributes available on the object. * Added Base#column_for_attribute(name) which returns the column description object for the named attribute. _Misc_ * Added multi-parameter assignment: # Instantiate objects for all attribute classes that needs more than one constructor parameter. This is done # by calling new on the column type or aggregation type (through composed_of) object with these parameters. # So having the pairs written_on(1) = \"2004\", written_on(2) = \"6\", written_on(3) = \"24\", will instantiate # written_on (a date type) with Date.new(\"2004\", \"6\", \"24\"). You can also specify a typecast character in the # parenteses to have the parameters typecasted before they\'re used in the constructor. Use i for Fixnum, f for Float, # s for String, and a for Array. This is incredibly useful for assigning dates from HTML drop-downs of month, year, and day. * Fixed bug with custom primary key column name and Base.find on multiple parameters. * Fixed bug with dependent option on has_one associations if there was no associated object.