deprecated count call modified

git-svn-id: http://redmine.rubyforge.org/svn/trunk@186 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-01-26 20:06:05 +00:00
parent 0d55613359
commit ab15456119
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class ProjectsController < ApplicationController
def list def list
sort_init 'name', 'asc' sort_init 'name', 'asc'
sort_update 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, @project_pages = Paginator.new self, @project_count,
15, 15,
params['page'] params['page']