Add public filter to admin projects

This commit is contained in:
Dmitriy Zaporozhets 2013-01-13 17:24:29 +02:00
parent 122acb2254
commit 68bfcd0521
10 changed files with 73 additions and 34 deletions

View file

@ -7,5 +7,6 @@ class Public::ProjectsController < ApplicationController
def index
@projects = Project.public
@projects = @projects.includes(:namespace).order("namespaces.path, projects.name ASC").page(params[:page]).per(20)
end
end