use .where.not instead of in-query condition for user confirm date

This commit is contained in:
Andreas Nedbal 2021-10-03 20:49:33 +02:00
parent 6639f6646a
commit 58588d22b1
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ class StaticController < ApplicationController
def about
@users = User
.where('confirmed_at IS NOT NULL')
.where.not(confirmed_at: nil)
.where(permanently_banned: false)
.where(banned_until: nil)
.where('answered_count > 0')