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 ine70d3df7c9
- Remove `by_private_lifo`. It is unused sincea7becf147a
This commit is contained in:
parent
9bb07b79e4
commit
b8231433d6
2 changed files with 0 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue