1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/associations
Lauro Caetano 4debc86bd3 Fix polymorphic eager load with foreign_key as String.
The foreign_key could be `String` and just doing `owners_map[owner_key]`
could return `nil`.
To prevent this bug, we should `to_s` both keys if their types are
different.

Fixes #14734.
2014-05-20 23:26:51 -03:00
..
association_scope_test.rb Merge branch 'master' into adequaterecord 2014-02-17 11:21:18 -08:00
belongs_to_associations_test.rb Fix polymorphic eager load with foreign_key as String. 2014-05-20 23:26:51 -03:00
callbacks_test.rb Remove unused variable 2014-05-01 14:10:11 -03:00
cascaded_eager_loading_test.rb Improve the tests to not call assert_nothing_raised 2014-01-01 14:15:01 -02:00
eager_load_includes_full_sti_class_test.rb
eager_load_nested_include_test.rb Use teardown helper method. 2014-03-14 20:48:59 -07:00
eager_singularization_test.rb Use teardown helper method. 2014-03-14 20:48:59 -07:00
eager_test.rb Remove dead test code for unsupported adapters 2014-05-17 13:24:25 -06:00
extension_test.rb Revert the whole refactoring in the association builder classes. 2013-12-11 19:28:32 -02:00
has_and_belongs_to_many_associations_test.rb Fix how to compute class name on habtm namespaced. 2014-05-13 11:26:46 -03:00
has_many_associations_test.rb test, regression test for has_many with instance dependent scope. 2014-05-09 22:26:55 +02:00
has_many_through_associations_test.rb clear shouldnt fire callbacks so remove order test 2014-04-28 19:31:45 -04:00
has_one_associations_test.rb Associations now raise ArgumentError on name conflicts. 2014-01-31 00:29:48 -02:00
has_one_through_associations_test.rb Raise ArgumentError when has_one is used with counter_cache 2013-11-29 19:21:49 -08:00
inner_join_association_test.rb Pass a base relation to build_default_scope when joining 2014-02-21 17:58:40 -05:00
inverse_associations_test.rb inversed instance should not be reloaded after stale state was changed 2013-10-13 21:51:40 +01:00
join_model_test.rb
nested_through_associations_test.rb preheat habtm column cache 2013-10-02 17:22:28 -07:00