aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/topic.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-05-28 22:43:09 +0930
committerGitHub <noreply@github.com>2017-05-28 22:43:09 +0930
commit58a5aa40ec869839fc514116fb81a135050082f6 (patch)
tree7fb752b7a59f3264c61ba361421f9e9b498aed39 /activerecord/test/models/topic.rb
parentf4863ddb35260d9873cc535fdfbe82027622e8e6 (diff)
parent694900ec1611fb792d611f4260d94c0e060627a3 (diff)
downloadrails-58a5aa40ec869839fc514116fb81a135050082f6.tar.gz
rails-58a5aa40ec869839fc514116fb81a135050082f6.tar.bz2
rails-58a5aa40ec869839fc514116fb81a135050082f6.zip
Merge pull request #29197 from kamipo/enable_extending_even_if_scope_returns_nil
Enable extending even if scope returns nil
Diffstat (limited to 'activerecord/test/models/topic.rb')
-rw-r--r--activerecord/test/models/topic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb
index 0420e2d15c..d9381ac9cf 100644
--- a/activerecord/test/models/topic.rb
+++ b/activerecord/test/models/topic.rb
@@ -14,7 +14,7 @@ class Topic < ActiveRecord::Base
scope :replied, -> { where "replies_count > 0" }
scope "approved_as_string", -> { where(approved: true) }
- scope :anonymous_extension, -> { all } do
+ scope :anonymous_extension, -> {} do
def one
1
end