Fix remaining Rails/WhereExists
cop violations, regenerate todo (#28892)
This commit is contained in:
parent
1a565e4bea
commit
7c9c6c7f80
7 changed files with 7 additions and 22 deletions
|
@ -23,7 +23,7 @@ class REST::AnnouncementSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def read
|
||||
object.announcement_mutes.where(account: current_user.account).exists?
|
||||
object.announcement_mutes.exists?(account: current_user.account)
|
||||
end
|
||||
|
||||
def content
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue