aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/collection_association.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't use mass-assignment protection when applying the ↵Jon Leighton2011-05-101-2/+4
| | | | scoped.scope_for_create. Fixes #481.
* Fix #480. Passing nil to create association works.José Valim2011-05-101-1/+1
|
* Revert "b9ea751d0e56bd00d341766977a607ed3f7ddd0f".José Valim2011-05-101-26/+27
| | | | | Wrapping each Record.associations.build in a transaction is going to make several unneeded queries. Reverting this commit also fixes #479.
* singular and collection relations in AR can now specify mass-assignment ↵Josh Kalderimis2011-05-011-10/+10
| | | | security options (:as and :without_protection) in build, create and create! methods.
* Removing the scope-caching which happens on association proxies, because the ↵Jon Leighton2011-04-121-12/+0
| | | | query is already cached by the query cacher. For formalised proof see http://www.youtube.com/watch?v=wDefXLb-FDs
* Move the code which builds a scope for through associations into a generic ↵Jon Leighton2011-03-101-13/+0
| | | | AssociationScope class which is capable of building a scope for any association.
* Use proper objects to do the work to build the associations (adding methods, ↵Jon Leighton2011-02-211-0/+39
| | | | callbacks etc) rather than calling a whole bunch of methods with rather long names.
* Delegate Association#options to the reflection, and replace ↵Jon Leighton2011-02-211-24/+24
| | | | 'reflection.options' with 'options'. Also add through_options and source_options methods for through associations.
* Associations - where possible, call attributes methods rather than directly ↵Jon Leighton2011-02-211-49/+49
| | | | accessing the instance variables
* Split AssociationProxy into an Association class (and subclasses) which ↵Jon Leighton2011-02-181-0/+510
manages the association, and a CollectionProxy class which is *only* a proxy. Singular associations no longer have a proxy. See CHANGELOG for more.