Fix Rails/FindEach
cop (#26886)
This commit is contained in:
parent
fe26f33e0a
commit
0c4e7c06dc
8 changed files with 9 additions and 9 deletions
|
@ -114,7 +114,7 @@ class RemoveStatusService < BaseService
|
|||
end
|
||||
|
||||
def remove_from_hashtags
|
||||
@account.featured_tags.where(tag_id: @status.tags.map(&:id)).each do |featured_tag|
|
||||
@account.featured_tags.where(tag_id: @status.tags.map(&:id)).find_each do |featured_tag|
|
||||
featured_tag.decrement(@status.id)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue