aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/inverse_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Fix `CustomCops/AssertNot` to allow it to have failure messageRyuta Kamizono2018-05-131-2/+2
* Make `reflection.klass` raise if `polymorphic?` not to be misusedRyuta Kamizono2018-02-191-0/+10
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-15/+15
* 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
|/
* Load both `:authors` and `:author_addresses` to keep data integrityYasuo Honda2017-08-221-1/+1
* Automatically guess the inverse associations for STIyui-knk2017-08-221-1/+38
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* Remove redundant `assert_respond_to`Ryuta Kamizono2017-07-031-26/+0
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Merge pull request #29540 from kirs/rubocop-frozen-stringMatthew Draper2017-07-021-0/+1
|\
| * Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* | Merge pull request #28808 from fschwahn/fix-polymorphic-automic-inverseMatthew Draper2017-07-011-6/+2
|\ \ | |/ |/|
| * Remove :polymorphic from INVALID_AUTOMATIC_INVERSE_OPTIONSFabian Schwahn2017-04-201-6/+2
* | Remove a duplicate test of inverse_associations_test in ARKoichi ITO2017-05-211-14/+0
|/
* :warning: "Use assert_nil if expecting nil. This will fail in MT6."Akira Matsuda2017-01-181-1/+1
* Ensure that inverse associations are set before running callbacksSean Griffin2016-08-311-0/+27
* Add three new rubocop rulesRafael Mendonça França2016-08-161-13/+13
* Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty linesRyuta Kamizono2016-08-071-1/+0
* modernizes hash syntax in activerecordXavier Noria2016-08-061-25/+25
* applies new string literal convention in activerecord/testXavier Noria2016-08-061-100/+100
* remove args from assert_nothing_raised in testsTara Scherner de la Fuente2016-02-221-7/+7
* Tweaked wording used in some tests.Sebastian McKenzie2015-10-251-4/+4
* Fix regression in inverse_of on through associationseileencodes2015-09-261-0/+13
* Fixed automatic inverse_of for models nested in moduleAndrew McCloud2014-06-151-0/+12
* Merge pull request #15343 from dontfidget/fix_polymorphic_automatic_inverse_ofRafael Mendonça França2014-06-131-0/+11
|\
| * use name specified by 'as' for automatic inverse association to avoid reflect...Andrew S. Brown2014-06-101-0/+11
* | Fix inverse associations testLeandro Facchinetti2014-06-041-1/+1
|/
* inversed instance should not be reloaded after stale state was changedDmitry Polushkin2013-10-131-0/+12
* add regression test for set_inverse_instance on add_to_targetArthur Neves2013-10-041-0/+13
* Fixing multi-word automatic inverse detection.wangjohn2013-08-151-0/+14
* using assert_not instead of refuteRajarshi Das2013-08-131-1/+1
* do not load all child records for inverse caseNeeraj Singh2013-06-211-0/+8
* fix bad test by making number that fits for integerNeeraj Singh2013-06-211-1/+5
* Revert "Merge pull request #10566 from neerajdotname/10509d"Jon Leighton2013-06-191-8/+0
* do not load all child records for inverse caseNeeraj Singh2013-06-191-0/+8
* Created a method to automatically find inverse associations and cachewangjohn2013-05-071-0/+82
* Merge pull request #9996 from mikz/masterJon Leighton2013-04-051-0/+16
|\
| * fix inverse_of association in block of new childMichal Cichra2013-04-011-0/+16
* | Updated the error message for +find+ on an inverse_of associationwangjohn2013-04-011-2/+0
* | Throwing a RecordNotFound exception when a record is scanned using thewangjohn2013-04-011-0/+18
|/
* Calling find() on an association with an inverse will now check to seewangjohn2013-03-191-0/+25
* Fix issue with collection associations and first(n)/last(n)Carlos Antonio da Silva2012-11-011-0/+13
* Use inversed parent for first and last child of has_many associationbrainopia2012-08-181-0/+6
* Deprecate ActiveRecord::Base.scoped.Jon Leighton2012-07-271-9/+9
* find and replace deprecated keysJon Leighton2012-04-271-9/+9
* %s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other th...Jon Leighton2012-04-271-9/+9
* remove calls to find(:first), find(:last) and find(:all)Jon Leighton2012-04-261-18/+18
* Revert "Deprecate implicit eager loading. Closes #950."Jon Leighton2012-01-161-4/+4