Get contributed projects for last year only
This commit is contained in:
parent
558dd81197
commit
716544085c
1 changed files with 1 additions and 0 deletions
|
@ -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)').
|
||||
|
|
Loading…
Reference in a new issue