dashboard

This commit is contained in:
gitlabhq 2011-11-02 22:14:03 +02:00
parent 83c1194d52
commit 020e1a8eee
7 changed files with 115 additions and 22 deletions

View file

@ -136,7 +136,7 @@ class Project < ActiveRecord::Base
notes.fresh.limit(n)
].compact.flatten.sort do |x, y|
y.created_at <=> x.created_at
end[0..n]
end[0...n]
end
def commit(commit_id = nil)
@ -160,7 +160,7 @@ class Project < ActiveRecord::Base
y.committed_date <=> x.committed_date
end
commits[0..n]
commits[0...n]
end
def commits_since(date)