Project activities restyled
This commit is contained in:
parent
05993f90e0
commit
97ba731574
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
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue