aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Collapse)AuthorAgeFilesLines
* Restore the use of `#add_to_target` for nested attribute updates on existing ↵Ben Woosley2013-08-121-4/+4
| | | | | | | | | records, and don't bother updating the association if the update is going to be rejected anyway. This requires adding a `skip_callbacks` argument to `#add_to_target` so that we don't call the callbacks multiple times in this case, which is functionally an application of existing association data, rather than an addition of a new record to the association.
* use flat_mapNeeraj Singh2013-08-031-1/+1
|
* use drop and avoid a range objectAaron Patterson2013-08-011-1/+1
|
* remove intermediate assignmentsAaron Patterson2013-08-012-7/+4
|
* push option handling "chrome" outside `initialize`Aaron Patterson2013-08-011-8/+7
|
* remove `valid_options` class methodAaron Patterson2013-08-011-4/+3
|
* association builder classes no longer need the modelAaron Patterson2013-08-012-7/+6
| | | | | decouple the builder classes from the model. Builder objects should be easier to reuse now.
* remove more mutations from the `build` methodAaron Patterson2013-08-011-7/+2
|
* make mutation method apis more consistentAaron Patterson2013-08-012-4/+5
|
* push more mutations outside the factory methodAaron Patterson2013-08-012-8/+6
|
* push module building to the constructorAaron Patterson2013-08-011-14/+20
|
* users should be warned if clobbering constantsAaron Patterson2013-08-011-3/+1
|
* defning extensions happens once, no need to cacheAaron Patterson2013-08-011-5/+3
|
* assert that constants have been set rather than the namesAaron Patterson2013-08-011-3/+3
|
* remove dead codeAaron Patterson2013-08-011-4/+0
|
* pushing out more callback definitionsAaron Patterson2013-08-011-2/+6
|
* push more mutations out of the builderAaron Patterson2013-08-012-12/+15
| | | | | `configure_dependency` actually defined callbacks, so rename the method and move it to the appropriate method.
* remove dependency on @model when defining callbacksAaron Patterson2013-08-012-8/+8
|
* extract more mutations to the callerAaron Patterson2013-08-012-13/+16
|
* separate some mutations from reflection constructionAaron Patterson2013-08-012-6/+6
|
* oops! :bomb:Aaron Patterson2013-07-311-1/+1
|
* do is_a? tests on assignment so runtime is fasterAaron Patterson2013-07-312-9/+12
|
* callback should always have a valueAaron Patterson2013-07-311-1/+1
|
* no need to to_symAaron Patterson2013-07-312-2/+2
|
* pass the mixin in to the code generation methodsAaron Patterson2013-07-313-11/+11
|
* we should not allow invalid objects to be constructedAaron Patterson2013-07-311-1/+2
|
* push some validation up to the factory methodAaron Patterson2013-07-311-4/+5
|
* use bind values for model typesAaron Patterson2013-07-311-2/+3
|
* only calculate the klass onceAaron Patterson2013-07-291-1/+2
|
* Refactor to use flat_mapCarlos Antonio da Silva2013-07-231-3/+3
|
* eliminate conditional in JoinHelperAaron Patterson2013-07-231-1/+1
|
* add a specific factory method rather than using newAaron Patterson2013-07-234-5/+5
|
* extract mutation from generation methodAaron Patterson2013-07-231-1/+1
|
* AR::Base does not need to know how to create reflection objectsAaron Patterson2013-07-221-1/+1
|
* remove unnecessary readerAaron Patterson2013-07-221-4/+4
|
* only flatten one sideAaron Patterson2013-07-221-1/+1
|
* extend by adding relationships rather than monkey patchingAaron Patterson2013-07-221-5/+7
|
* decouple extensions from association object stateAaron Patterson2013-07-221-2/+2
|
* Revert "Merge pull request #11416 from tigrish/master"Yves Senn2013-07-222-2/+2
| | | | | This reverts commit 9dc8aef084fc5ae7e3a396dd098d89da93d06fda, reversing changes made to 02e8dae6279ea25312293a3eca777faf35139c4c.
* Merge pull request #11416 from tigrish/masterYves Senn2013-07-212-2/+2
|\ | | | | Rename the I18n keys for associations' restrict_dependent_destroy errors
| * Remove ambiguity with pluralizations and I18n keys used for association ↵Christopher Dell2013-07-132-2/+2
| | | | | | | | restrict_dependent_destroy errors
* | use the superclass implementationAaron Patterson2013-07-181-1/+1
| |
* | parent_table is only used internallyAaron Patterson2013-07-161-4/+4
| |
* | decouple the manager class from building join constraintsAaron Patterson2013-07-161-6/+6
| |
* | cache the klass member of the reflectionAaron Patterson2013-07-161-8/+10
| |
* | cache the scope chain on the stack and eliminate `i`Aaron Patterson2013-07-161-7/+4
| |
* | just push on to the scope chain items. Oops! (thanks @carlosantoniodasilva)Aaron Patterson2013-07-161-2/+1
| |
* | use Relation#merge to combine scope chain itemsAaron Patterson2013-07-161-6/+6
| |
* | make sure scope_chain_items has consistent typesAaron Patterson2013-07-161-7/+9
|/
* #11288: Removed duplicated touchingPaul Nikitochkin2013-07-051-1/+1
| | | | | | if belongs to model with touch option on touch Closes #11288