aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
Commit message (Expand)AuthorAgeFilesLines
* Allow a belonging to object to be created from a new recordJolyon Pawlyn2018-05-011-0/+9
* Merge pull request #32727 from utilum/assert_dont_expectsRafael França2018-04-271-9/+13
|\
| * assert_calledutilum2018-04-261-3/+4
| * assert_not_calledutilum2018-04-261-6/+9
* | Ensure that `ids_reader` respects dirty target whether target is loaded or notRyuta Kamizono2018-04-271-2/+2
* | Merge pull request #32617 from tgturner/size-should-use-available-associationRyuta Kamizono2018-04-271-0/+74
|\ \
| * | Loaded associations should not run a new query when size is calledGraham Turner2018-04-261-0/+74
| |/
* / Add test case that assigning belongs_to on destroyed object raises frozen errorRyuta Kamizono2018-04-271-0/+7
|/
* Using existing models for building multiple has_one through testsRyuta Kamizono2018-04-221-16/+12
* Merge pull request #32514 from samdec/multiple-has-one-through-associations-b...Ryuta Kamizono2018-04-221-0/+22
|\
| * Fix .new with multiple through associationsSam DeCesare2018-04-091-0/+22
* | Add test case for `collection.size` with dirty targetRyuta Kamizono2018-04-211-0/+10
* | Can preload associations through polymorphic associationsDana Sherson2018-04-201-0/+29
* | Replace `assert !` with `assert_not`Daniel Colson2018-04-195-6/+6
|/
* Autocorrect `refute` RuboCop violationsDaniel Colson2018-04-032-2/+2
* Fix intermittent CI failure due to setting explicit `person.id = 10`Ryuta Kamizono2018-03-301-4/+0
* Don't unset foreign key when preloading missing recordEugene Kenny2018-03-241-0/+2
* Fix dependence on has_one/belongs_to relationshipsFernando Gorodscy2018-03-062-0/+48
* Eager loading with polymorphic associations should behave consistentlyRyuta Kamizono2018-03-041-2/+4
* Extract all `base_class.name` as `polymorphic_name`Ryuta Kamizono2018-03-041-9/+23
* Fix "NameError: uninitialized constant Categorization::Category"yuuji.yaginuma2018-02-261-0/+1
* Merge pull request #31895 from kamipo/do_not_attempt_to_find_inverse_of_polym...Ryuta Kamizono2018-02-261-0/+10
|\
| * Make `reflection.klass` raise if `polymorphic?` not to be misusedRyuta Kamizono2018-02-191-0/+10
* | Association creation and finding should work consistently (#32048)Ryuta Kamizono2018-02-261-5/+35
|/
* Association scope's own order should be prioritized over through scope's orderRyuta Kamizono2018-02-181-0/+7
* Deprecate update_attributes and update_attributes!Eddie Lebow2018-02-172-7/+7
* Merge pull request #31934 from fatkodima/fix-has_many_through-dumpingRyuta Kamizono2018-02-091-0/+5
|\
| * Fix marshaling of models with `has_many :through` associationsfatkodima2018-02-081-0/+6
|/
* Remove extra whitespaceDaniel Colson2018-01-254-25/+25
* Use assert_empty and assert_not_emptyDaniel Colson2018-01-259-68/+68
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-2513-242/+242
* Use respond_to test helpersDaniel Colson2018-01-251-1/+1
* Fix building has_one through recordRyuta Kamizono2018-01-231-0/+12
* Don't update counter cache when through record was not destroyedEugene Kenny2018-01-141-0/+10
* Merge pull request #23146 from piotrj/issue_18424Ryuta Kamizono2018-01-111-0/+19
|\
| * When deleting through records, take into account association conditionsPiotr Jakubowski2016-05-041-0/+16
* | Fix `stale_state` for nested `has_many :through` associationsRyuta Kamizono2018-01-101-12/+28
* | Merge pull request #16314 from zoltankiss/allow-nested-has-many-associations-...Ryuta Kamizono2018-01-101-0/+29
|\ \
| * | Fix nested `has many :through` associations on unpersisted instancesZoltan Kiss2015-03-261-0/+29
* | | Fix newly added reflection order when redefining associationRyuta Kamizono2018-01-041-1/+1
* | | Merge pull request #27561 from fishbrain/count-all-in-has-many-associationRyuta Kamizono2018-01-031-0/+8
|\ \ \
| * | | Use `count(:all)` in HasManyAssociation#count_recordsKlas Eskilson2017-02-071-0/+8
* | | | Add test case for `collection_singular_ids` with symbol primary keysRyuta Kamizono2018-01-011-0/+8
* | | | Bugfix foreign key replacement in inverse associationBogdan Gusiev2017-12-271-0/+9
* | | | Enable `Layout/LeadingCommentSpace` to not allow cosmetic changes in the futureRyuta Kamizono2017-12-143-7/+7
* | | | Enable `Layout/SpaceBeforeComma` rubocop rule, and fixed moreRyuta Kamizono2017-12-122-2/+2
* | | | Merge pull request #31214 from chopraanmol1/bug_fix_has_one_inverse_owner_rel...Eileen M. Uchitelle2017-11-291-0/+10
|\ \ \ \
| * | | | Inverse instance should not be reloaded during autosave if called in validationAnmol Chopra2017-11-271-0/+10
* | | | | Provide arguments to RecordNotFoundNikita Misharin2017-11-251-1/+4
|/ / / /
* | | | Merge pull request #27947 from mastahyeti/unsafe_raw_sqlMatthew Draper2017-11-141-5/+5
|\ \ \ \