Merge branch 'project_activities'

This commit is contained in:
Dmitriy Zaporozhets 2012-01-05 20:16:41 +02:00
commit 70efc014e9
7 changed files with 105 additions and 30 deletions

View file

@ -45,6 +45,14 @@ class Note < ActiveRecord::Base
def notify_author
@notify_author ||= false
end
def target
if noteable_type == "Commit"
project.commit(noteable_id)
else
noteable
end
end
end
# == Schema Information
#

View file

@ -117,9 +117,9 @@ class Repository
commits.sort! do |x, y|
y.committed_date <=> x.committed_date
end[0..n]
end
commits
commits[0..n]
end
def commits_since(date)