]> source.dussan.org Git - redmine.git/commitdiff
Fixes argument in Repository#latest_changesets.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 17 Aug 2009 14:12:51 +0000 (14:12 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 17 Aug 2009 14:12:51 +0000 (14:12 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2842 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/repository.rb

index 860395b5cd2a7a713d9b4aee761d2252b2ee8e8d..9ab4fbae2074433edf079c08763eaa68507b877d 100644 (file)
@@ -106,7 +106,7 @@ class Repository < ActiveRecord::Base
   end
 
   def latest_changesets(path,rev,limit=10)
-    @latest_changesets ||= changesets.find(:all, limit, :order => "committed_on DESC")
+    @latest_changesets ||= changesets.find(:all, :limit => limit, :order => "committed_on DESC")
   end
     
   def scan_changesets_for_issue_ids