Merge branch 'project_activities'
This commit is contained in:
commit
70efc014e9
7 changed files with 105 additions and 30 deletions
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue