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/models | |
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/models')
-rw-r--r-- | activerecord/test/models/post.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb index 395b534c63..c34968590f 100644 --- a/activerecord/test/models/post.rb +++ b/activerecord/test/models/post.rb @@ -11,6 +11,10 @@ class Post < ActiveRecord::Base def author "lifo" end + + def greeting + super + " :)" + end end module NamedExtension2 |