aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #29631 from kamipo/should_be_clear_association_idsMatthew Draper2017-07-011-0/+5
|\
| * Should be clear `@association_ids` when joined newly associated recordRyuta Kamizono2017-06-301-0/+5
* | Merge pull request #28808 from fschwahn/fix-polymorphic-automic-inverseMatthew Draper2017-07-012-6/+16
|\ \ | |/ |/|
| * Add regression test for setting inverse instances on normal & polymorphic rel...Fabian Schwahn2017-04-201-0/+14
| * Remove :polymorphic from INVALID_AUTOMATIC_INVERSE_OPTIONSFabian Schwahn2017-04-201-6/+2
* | Remove unused `aliased_table_name` in `Association`Ryuta Kamizono2017-06-291-1/+0
* | Merge pull request #29601 from kamipo/fix_eager_loading_to_respect_store_full...Rafael Mendonça França2017-06-281-10/+17
|\ \
| * | Fix eager loading to respect `store_full_sti_class` settingRyuta Kamizono2017-06-291-10/+17
* | | Merge pull request #29610 from kamipo/dont_passing_klass_connection_to_associ...Rafael França2017-06-281-2/+1
|\ \ \
| * | | Don't passing `klass.connection` to `AssociationScope`Ryuta Kamizono2017-06-291-2/+1
* | | | Merge pull request #29611 from kamipo/add_test_case_for_unscoping_default_scopeRafael França2017-06-281-2/+3
|\ \ \ \ | |_|/ / |/| | |
| * | | Add a test case for unscoping `default_scope` in associationsRyuta Kamizono2017-06-291-2/+3
| |/ /
* | | Merge pull request #29602 from kamipo/use_reload_in_test_find_first_after_reloadRafael França2017-06-281-10/+10
|\ \ \ | |/ / |/| |
| * | Use `reload` in `test_find_first_after_reload`Ryuta Kamizono2017-06-281-10/+10
* | | ActiveRecord: do not create "has many through" records that have been removedTobias Kraze2017-06-281-0/+11
|/ /
* | Move clearing of @offsets cache to reset_scopeJohn Hawthorn2017-06-211-12/+21
* | Clear offset cache on CollectionProxy reset/reloadJohn Hawthorn2017-06-201-0/+26
* | Raise on create for singular association when parent is unpersistedAlex Kitchens2017-06-081-0/+9
* | Remove redundant `assert_nothing_raised` before another assertionsRyuta Kamizono2017-06-062-9/+0
* | Correct a has_many association testKoichi ITO2017-06-011-1/+1
* | Remove a redundant test case of HABTM_associations_testKoichi ITO2017-05-311-13/+0
* | Merge pull request #29098 from kamipo/fix_association_with_extension_issuesMatthew Draper2017-05-302-1/+15
|\ \
| * | Fix association with extension issuesRyuta Kamizono2017-05-282-1/+15
* | | Remove a redundant test assertionKoichi ITO2017-05-291-6/+0
|/ /
* | Merge pull request #29176 from bogdanvlviv/define-path-with__dir__Matthew Draper2017-05-261-1/+1
|\ \
| * | Define path with __dir__bogdanvlviv2017-05-231-1/+1
* | | Fix a RuboCop offences using `rubocop -a`Koichi ITO2017-05-241-1/+1
* | | Merge pull request #29141 from kamipo/make_helper_methods_to_privateMatthew Draper2017-05-241-18/+19
|\ \ \
| * | | Make helper methods in tests to privateRyuta Kamizono2017-05-191-18/+19
| |/ /
* / / Remove a duplicate test of inverse_associations_test in ARKoichi ITO2017-05-211-14/+0
|/ /
* | Don't eager loading if unneeded for `FinderMethods#exists?`Ryuta Kamizono2017-05-111-0/+1
* | Evaluate belongs_to :default option against the owner, not the associationGeorge Claghorn2017-04-271-0/+18
* | Restore `fixtures :author_addresses`Ryuta Kamizono2017-04-278-10/+10
* | Merge pull request #28885 from kamipo/remove_useless_test_caseRafael França2017-04-261-5/+0
|\ \
| * | Remove useless test caseRyuta Kamizono2017-04-261-5/+0
* | | Revert "Merge pull request #27636 from mtsmfm/disable-referential-integrity-w...Rafael Mendonça França2017-04-268-10/+10
|/ /
* | `respond_to_missing?` should be privateRyuta Kamizono2017-04-221-1/+0
* | Don't attempt to create a new record that was already created.Isaac Betesh2017-04-201-0/+20
* | Prevent double firing the before save callback of new object when the parent ...Ryuta Kamizono2017-04-211-2/+16
|/
* Load :author_addressesYasuo Honda2017-03-261-1/+1
* Use `SET CONSTRAINTS` for `disable_referential_integrity` without superuser p...Fumiaki MATSUSHIMA2017-03-267-9/+9
* Merge pull request #28474 from kamipo/fix_extension_with_darty_targetKasper Timm Hansen2017-03-201-0/+5
|\
| * Fix extension method with dirty target in has_many associationsRyuta Kamizono2017-03-201-0/+5
* | Use `load` rather than `collect` for force loadingRyuta Kamizono2017-03-191-3/+3
|/
* Add :default option to belongs_to (#28453)George Claghorn2017-03-171-0/+20
* Fix select with block doesn't return newly built records in has_many associationRyuta Kamizono2017-03-091-0/+6
* Merge pull request #28210 from cefigueiredo/improve_required_testRafael França2017-02-281-7/+35
|\
| * Ensure that tests will reset belongs_to_requierd_by_default configCarlos Figueiredo2017-02-271-23/+27
| * Make required by default test for belongs_to association clearerCarlos Figueiredo2017-02-271-1/+25
* | Revert "Dupping a CollectionProxy should dup the load_target"eileencodes2017-02-281-8/+0