diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 20:06:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-01-26 20:06:05 +0000 |
commit | ab15456119b953b29417149af2f55e3f549ef0e5 (patch) | |
tree | 1f8c31b3b3efcfc5f58f7be343f4976ec2ff53ba | |
parent | 0d55613359d98958e6b21174a30235a8431595d8 (diff) | |
download | redmine-ab15456119b953b29417149af2f55e3f549ef0e5.tar.gz redmine-ab15456119b953b29417149af2f55e3f549ef0e5.zip |
deprecated count call modified
git-svn-id: http://redmine.rubyforge.org/svn/trunk@186 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/projects_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 48b4be205..06312a66d 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -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']
|