app/queries/decidim/admin/user_groups_evaluation.rb in decidim-admin-0.14.4 vs app/queries/decidim/admin/user_groups_evaluation.rb in decidim-admin-0.15.0
- old
+ new
@@ -39,14 +39,14 @@
end
def filter_by_state(user_groups)
case @state
when "verified"
- user_groups.where.not(verified_at: nil)
+ user_groups.verified
when "rejected"
- user_groups.where.not(rejected_at: nil)
+ user_groups.rejected
when "pending"
- user_groups.where(verified_at: nil, rejected_at: nil)
+ user_groups.pending
else
user_groups
end
end
end