Create events on comments and milestone

This commit is contained in:
Dmitriy Zaporozhets 2012-12-14 19:33:33 +02:00
parent 190e483fb4
commit 678e5355a3
7 changed files with 40 additions and 3 deletions

View file

@ -121,4 +121,12 @@ class Note < ActiveRecord::Base
def downvote?
note.start_with?('-1') || note.start_with?(':-1:')
end
def noteable_type_name
if noteable_type.present?
noteable_type.downcase
else
"wall"
end
end
end