aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations
Commit message (Collapse)AuthorAgeFilesLines
* reduce relation allocationsAaron Patterson2013-08-301-1/+3
|
* require a class for cache computationsAaron Patterson2013-08-301-1/+1
|
* correctly typecast keys, remove conditionals, reduce object allocationsAaron Patterson2013-08-282-7/+11
|
* no need to to_a the scopeAaron Patterson2013-08-281-1/+1
|
* remove extra flat_map arrayAaron Patterson2013-08-281-8/+9
|
* avoid extra empty array allocationAaron Patterson2013-08-281-10/+10
|
* extract owner id calculation to a methodAaron Patterson2013-08-281-1/+5
|
* only call to_a when we have toAaron Patterson2013-08-282-2/+6
|
* remove intermediate variableAaron Patterson2013-08-271-3/+1
|
* cache association reset calculationAaron Patterson2013-08-271-4/+4
|
* query the association rather than send the method for the association nameAaron Patterson2013-08-271-5/+6
|
* Stray nodoc causes rest of file not parsed [ci skip]edogawaconan2013-08-221-2/+0
|
* 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
|