From 30af2e7188fbe6e29d3aa566d710f5a6a67aaabd Mon Sep 17 00:00:00 2001 From: Diaspora Europe Date: Wed, 21 Mar 2012 09:56:06 +0100 Subject: [PATCH] handle users without created at date --- app/controllers/admins_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admins_controller.rb b/app/controllers/admins_controller.rb index d433c71ba..9b0ff0283 100644 --- a/app/controllers/admins_controller.rb +++ b/app/controllers/admins_controller.rb @@ -30,7 +30,7 @@ class AdminsController < ApplicationController end def weekly_user_stats - @created_users = User.where("username IS NOT NULL") + @created_users = User.where("username IS NOT NULL and created_at IS NOT NULL") @created_users_by_week = Hash.new{ |h,k| h[k] = [] } @created_users.each do |u| unless u.nil?