aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2019-01-28 14:19:33 +0000
committerbogdanvlviv <bogdanvlviv@gmail.com>2019-01-30 14:29:17 +0000
commitb8231433d6df8db948020b0bfe8cf878188cc7d6 (patch)
tree0457747e517d27c1af639d0242b0ea87126e10f0 /activerecord/test/models
parent9bb07b79e4bd855f24c098ba636dae15340e03ed (diff)
downloadrails-b8231433d6df8db948020b0bfe8cf878188cc7d6.tar.gz
rails-b8231433d6df8db948020b0bfe8cf878188cc7d6.tar.bz2
rails-b8231433d6df8db948020b0bfe8cf878188cc7d6.zip
Remove unused code
- Remove `fragment_cache_key` helper declaration. It was removed in e70d3df7c9b05c129b0fdcca57f66eca316c5cfc - Remove `by_private_lifo`. It is unused since a7becf147afc85c354e5cfa519911a948d25fc4d
Diffstat (limited to 'activerecord/test/models')
-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