aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-01-31 00:18:59 +0900
committerGitHub <noreply@github.com>2019-01-31 00:18:59 +0900
commit9f8438a99f66136924bccf2c41bbc11c3ba69c3a (patch)
tree0457747e517d27c1af639d0242b0ea87126e10f0 /activerecord/test
parent9bb07b79e4bd855f24c098ba636dae15340e03ed (diff)
parentb8231433d6df8db948020b0bfe8cf878188cc7d6 (diff)
downloadrails-9f8438a99f66136924bccf2c41bbc11c3ba69c3a.tar.gz
rails-9f8438a99f66136924bccf2c41bbc11c3ba69c3a.tar.bz2
rails-9f8438a99f66136924bccf2c41bbc11c3ba69c3a.zip
Merge pull request #35101 from bogdanvlviv/remove-unused-code
Remove unused code
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/models/topic.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/test/models/topic.rb b/activerecord/test/models/topic.rb
index 03430154db..a6a47687a2 100644
--- a/activerecord/test/models/topic.rb
+++ b/activerecord/test/models/topic.rb
@@ -12,17 +12,9 @@ class Topic < ActiveRecord::Base
scope :scope_with_lambda, lambda { all }
- scope :by_private_lifo, -> { where(author_name: private_lifo) }
scope :by_lifo, -> { where(author_name: "lifo") }
scope :replied, -> { where "replies_count > 0" }
- class << self
- private
- def private_lifo
- "lifo"
- end
- end
-
scope "approved_as_string", -> { where(approved: true) }
scope :anonymous_extension, -> { } do
def one