Processing with note events. reformated dashboard for more events to handle
This commit is contained in:
parent
678e5355a3
commit
f2db188dbe
8 changed files with 73 additions and 33 deletions
21
app/roles/note_event.rb
Normal file
21
app/roles/note_event.rb
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue