Split commit_id and noteable_id for Note

This commit is contained in:
Dmitriy Zaporozhets 2012-12-18 20:02:00 +02:00
parent aa8d4d9fea
commit 9ada678819
11 changed files with 54 additions and 28 deletions

View file

@ -1,6 +1,6 @@
module NoteEvent
def note_commit_id
target.noteable_id
target.commit_id
end
def note_short_commit_id
@ -16,7 +16,11 @@ module NoteEvent
end
def note_target_id
target.noteable_id
if note_commit?
target.commit_id
else
target.noteable_id.to_s
end
end
def wall_note?