Project activities restyled

This commit is contained in:
Dmitriy Zaporozhets 2012-01-04 22:19:41 +02:00
parent 05993f90e0
commit 97ba731574
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
#