aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-05-24 06:25:09 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-05-24 06:39:20 +0900
commit694900ec1611fb792d611f4260d94c0e060627a3 (patch)
tree4734586f404756016f0f13e31ebaa32d24d7c63a /activerecord/test/models
parent845aabbcd3805420090f8b92b50a4562577cf210 (diff)
downloadrails-694900ec1611fb792d611f4260d94c0e060627a3.tar.gz
rails-694900ec1611fb792d611f4260d94c0e060627a3.tar.bz2
rails-694900ec1611fb792d611f4260d94c0e060627a3.zip
Enable extending even if scope returns nil
Diffstat (limited to 'activerecord/test/models')
-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