note_event.rb 289 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 module NoteEvent def note_commit_id target.noteable_id end def note_short_commit_id note_commit_id[0..8] end def note_commit? target.noteable_type == "Commit" end def note_target target.noteable end def note_target_id target.noteable_id end end