rename scope to prevent name collision
This commit is contained in:
parent
4bf63212d7
commit
806b76a168
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ class Public::ProjectsController < ApplicationController
|
|||
layout 'public'
|
||||
|
||||
def index
|
||||
@projects = Project.public
|
||||
@projects = Project.public_only
|
||||
@projects = @projects.includes(:namespace).order("namespaces.path, projects.name ASC").page(params[:page]).per(20)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue