Autofix Rubocop Style/Lambda (#23696)
This commit is contained in:
parent
e2a3ebb271
commit
ab7816a414
6 changed files with 7 additions and 19 deletions
|
@ -49,7 +49,7 @@ class Tag < ApplicationRecord
|
|||
scope :listable, -> { where(listable: [true, nil]) }
|
||||
scope :trendable, -> { Setting.trendable_by_default ? where(trendable: [true, nil]) : where(trendable: true) }
|
||||
scope :not_trendable, -> { where(trendable: false) }
|
||||
scope :recently_used, ->(account) {
|
||||
scope :recently_used, lambda { |account|
|
||||
joins(:statuses)
|
||||
.where(statuses: { id: account.statuses.select(:id).limit(1000) })
|
||||
.group(:id).order(Arel.sql('count(*) desc'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue