use .where.not instead of in-query condition for user confirm date
This commit is contained in:
parent
6639f6646a
commit
58588d22b1
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue