]> source.dussan.org Git - redmine.git/commitdiff
deprecated count call modified
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 26 Jan 2007 20:06:05 +0000 (20:06 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 26 Jan 2007 20:06:05 +0000 (20:06 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@186 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/projects_controller.rb

index 48b4be20537e6df96ddf483d1219ca93509f405b..06312a66def01dff4a18801d811d7476d9a30774 100644 (file)
@@ -41,7 +41,7 @@ class ProjectsController < ApplicationController
   def list\r
     sort_init 'name', 'asc'\r
     sort_update                \r
-    @project_count = Project.count(["is_public=?", true])              \r
+    @project_count = Project.count(:all, :conditions => ["is_public=?", true])         \r
     @project_pages = Paginator.new self, @project_count,\r
                                                                15,\r
                                                                params['page']                                                          \r