diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2017-05-31 19:37:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-31 19:37:57 +0200 |
commit | 6fecb188fa14e7ef7b8bbc0b8e5070306338d22c (patch) | |
tree | f975cad2fdddfe5d33e286facf2e6430375ec93a /activerecord/test/models/comment.rb | |
parent | 7c800fe5e338540ef195f071a7f3604ed4197f3f (diff) | |
parent | 262ef5df706dcfaa8770108acbc178db32e3ae88 (diff) | |
download | rails-6fecb188fa14e7ef7b8bbc0b8e5070306338d22c.tar.gz rails-6fecb188fa14e7ef7b8bbc0b8e5070306338d22c.tar.bz2 rails-6fecb188fa14e7ef7b8bbc0b8e5070306338d22c.zip |
Merge pull request #29296 from kamipo/delegate_extending_to_relation
Add missing `delegate :extending, to: :all`
Diffstat (limited to 'activerecord/test/models/comment.rb')
-rw-r--r-- | activerecord/test/models/comment.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/test/models/comment.rb b/activerecord/test/models/comment.rb index 8cba788598..d227f6fe86 100644 --- a/activerecord/test/models/comment.rb +++ b/activerecord/test/models/comment.rb @@ -29,6 +29,8 @@ class Comment < ActiveRecord::Base default_scope { extending OopsExtension } + scope :oops_comments, -> { extending OopsExtension } + # Should not be called if extending modules that having the method exists on an association. def self.greeting raise |