…lid SQL (id = ) if the record wasn't saved yet (i.e. the primary key's value is nil).
…d. fixes #796
…t have validation errors
…et a better trace without it
…e used independently.
…ation to another has_one polymorphic association. This also includes a fix in to the Author model test to properly define two associations to taggings as a has_one and a has_many.
…urce joins on both the polymorphic_id and polymorphic_type fields. Previously, the inner joins were merely joining on the polymorphic_id field.
* 3-0-7: bumping version for release adding a rake task to update CHANGELOG dates Prepare for the 3.0.7.rc2 release Added missing CHANGELOG entries for 3.0.7 Add missing CHANGELOG entries Update CHANGELOG Backport test assertions from 65469a6 (the behaviour is already the same, but we need to assertions to guard against regressions) Undo performances regressions I introduced in 36691ac and add test for an edge case. Add comments to explain the intent of the code. Also fix the code (which previously worked differently on 1.8 and 1.9 due to Symbol#=~ being always false on 1.8)." Return nil from read_attribute if _foo is defined, but @attributes has no 'foo' key. Fixes breakage in test_find_only_some_columns on Ruby 1.9 which was introduced in a3639be. Remove unnecessary code from define_read_method and add assertion to make sure the underscored version is actually generated Conflicts: activerecord/CHANGELOG