Skip to content

Commit

Permalink
Merge branch 'fix-500-admin-projects' into 'master'
Browse files Browse the repository at this point in the history
Fix 500 error when filtering projects in admin interface

Fixes #1693

See merge request !1200
  • Loading branch information
dzaporozhets committed Oct 20, 2014
2 parents 72abe9f + 5ed7c20 commit 3f4cfd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def publicish(user)
end

def with_push
includes(:events).where('events.action = ?', Event::PUSHED)
joins(:events).where('events.action = ?', Event::PUSHED)
end

def active
Expand Down

0 comments on commit 3f4cfd3

Please sign in to comment.