HTTPS clone URL
Subversion checkout URL
Commits on Jun 7, 2012
Commits on May 19, 2012
The fix commited in e2a070c was returning the `new_target`, as a try to return whatever user replaced association with. The problem is, the resulting association target may be ordered differently. In such case we want to return the target that will be later used for that association.
Commits on May 18, 2012
Commits on May 17, 2012
Commits on Jan 31, 2012
Commits on Dec 18, 2011
Commits on Dec 14, 2011
Commits on Nov 25, 2011
… is present but the record is unsaved
Commits on Nov 4, 2011
Commits on Jul 24, 2011
…h English to American English(according to Weber)
Commits on Jul 6, 2011
…th conditions and includes, when condtions references tables from includes. Test fail because of invalid sql: ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column: comments.id: SELECT "posts".id FROM "posts" INNER JOIN "readers" ON "posts"."id" = "readers"."post_id" WHERE "readers"."person_id" = 1 AND (comments.id is null) Bug described in github#925 This commit will revert fix from 3436fdf , but tests is ok. Bug described in #6569 ticket.
Commits on Jul 5, 2011
In order to make CollectionAssociation behave closer to Array Add the ability to pass block to #find method just like Array#find does.
Commits on Jun 30, 2011
… before_initialize callback of the record runs. Fixes #1842.
Commits on Jun 12, 2011
… they are not needed, so the connection adapter does not send empty BEGIN COMMIT transactions blocks to the database.
Commits on Jun 3, 2011
Commits on May 31, 2011
Commits on May 23, 2011
Commits on May 17, 2011
The build_association method was added as an API for plugins to hook into in 1398db0. This commit restores this API and the ability to override class.new to return a subclass based on a virtual attribute in the attributes hash.
Commits on May 14, 2011
* It is not necessary to subtract 'id' from the list of copied attributes because record and mem_record are equal, so therefore their id attributes are also equal (so there is no harm in copying it, and this reduces the complexity of the code) * It is not necessary to intersect the attribute names, since record and mem_record are equal, so they have the same id and class, so they have the same columns in the database. If record has non-column attributes then it seems reasonable to also copy them onto mem_record (though I am not sure what situation this would ever happen in)
…ng attributes when copying, rather than using the assignment method
Commits on May 13, 2011
…coped.all, just do scoped.all.
… I can't see a way that it would happen ever)
Commits on May 11, 2011
Commits on May 10, 2011
…or_create. Fixes #481.
Wrapping each Record.associations.build in a transaction is going to make several unneeded queries. Reverting this commit also fixes #479.
Commits on May 1, 2011
…nt security options (:as and :without_protection) in build, create and create! methods.
Commits on Apr 13, 2011
…use the query is already cached by the query cacher. For formalised proof see http://www.youtube.com/watch?v=wDefXLb-FDs
Commits on Mar 10, 2011
…neric AssociationScope class which is capable of building a scope for any association.