Patch #1790 » raise_latest_projects_amount_to_10-r1745.patch
| 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
|
||