From 716544085ce3d100f466103ba5d7c00a771ba6ca Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Wed, 18 Feb 2015 15:16:13 -0800
Subject: [PATCH] Get contributed projects for last year only

---
 app/models/user.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/models/user.rb b/app/models/user.rb
index ba148f492a..3bbbd23c1b 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -610,6 +610,7 @@ class User < ActiveRecord::Base
 
   def contributed_projects_ids
     Event.where(author_id: self).
+      where("created_at > ?", Time.now - 1.year).
       code_push.
       reorder(project_id: :desc).
       select('DISTINCT(project_id)').
-- 
2.30.9