Project

General

Profile

Patch #1790 » raise_latest_projects_amount_to_10-r1745.patch

Patch created against r1745 - Mischa The Evil, 2008-08-14 15:46

View differences:

app/models/project.rb (working copy)
# returns latest created projects
# non public projects will be returned only if user is a member of those
def self.latest(user=nil, count=5)
def self.latest(user=nil, count=10)
find(:all, :limit => count, :conditions => visible_by(user), :order => "created_on DESC")
end
(1-1/2)