diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-04-22 16:28:20 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-04-12 18:01:57 +0900 |
commit | fa8c525d20ff14e4a9d367d2845b446267065bcc (patch) | |
tree | 1753880cb6c0ecc20f43a1528bce09a8857c1509 /activerecord/test/cases/associations/eager_load_nested_include_test.rb | |
parent | 3bd534287139549cee10e10364344d66139d9237 (diff) | |
download | rails-fa8c525d20ff14e4a9d367d2845b446267065bcc.tar.gz rails-fa8c525d20ff14e4a9d367d2845b446267065bcc.tar.bz2 rails-fa8c525d20ff14e4a9d367d2845b446267065bcc.zip |
Fix `automatic_inverse_of` not to be disabled if extension block is given
If an association has a scope, `automatic_inverse_of` is to be disabled.
But extension block is obviously not a scope. It should not be regarded
as a scope.
Fixes #28806.
Diffstat (limited to 'activerecord/test/cases/associations/eager_load_nested_include_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/eager_load_nested_include_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/eager_load_nested_include_test.rb b/activerecord/test/cases/associations/eager_load_nested_include_test.rb index 525ad3197a..849939de75 100644 --- a/activerecord/test/cases/associations/eager_load_nested_include_test.rb +++ b/activerecord/test/cases/associations/eager_load_nested_include_test.rb @@ -110,10 +110,10 @@ class EagerLoadNestedIncludeWithMissingDataTest < ActiveRecord::TestCase end teardown do - @davey_mcdave.destroy - @first_post.destroy @first_comment.destroy @first_categorization.destroy + @davey_mcdave.destroy + @first_post.destroy end def test_missing_data_in_a_nested_include_should_not_cause_errors_when_constructing_objects |