1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove unused code

- Remove `fragment_cache_key` helper declaration.
  It was removed in e70d3df7c9

- Remove `by_private_lifo`.
  It is unused since a7becf147a
This commit is contained in:
bogdanvlviv 2019-01-28 14:19:33 +00:00
parent 9bb07b79e4
commit b8231433d6
No known key found for this signature in database
GPG key ID: E4ACD76A6DB6DFDD
2 changed files with 0 additions and 9 deletions

View file

@ -28,7 +28,6 @@ module AbstractController
self.fragment_cache_keys = []
if respond_to?(:helper_method)
helper_method :fragment_cache_key
helper_method :combined_fragment_cache_key
end
end

View file

@ -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