Commit ab154561 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

deprecated count call modified

git-svn-id: http://redmine.rubyforge.org/svn/trunk@186 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0d556133
......@@ -41,7 +41,7 @@ class ProjectsController < ApplicationController
def list
sort_init 'name', 'asc'
sort_update
@project_count = Project.count(["is_public=?", true])
@project_count = Project.count(:all, :conditions => ["is_public=?", true])
@project_pages = Paginator.new self, @project_count,
15,
params['page']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment