mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
use .where.not instead of in-query condition for user confirm date
This commit is contained in:
parent
6639f6646a
commit
58588d22b1
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue