diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-05-12 23:31:53 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-16 22:52:03 +0300 |
commit | b2fc0a51a61669b46516c2a21cbd0abd893ff124 (patch) | |
tree | 25b2c4dbef8192b59b517daa79141d36456ca0ac /app/helpers | |
parent | 8a7b5b17d325e13c989098c7e763de1f43505780 (diff) |
Rename `Event#note_commit?` to `commit_note?`
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/events_helper.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb index d0a63d58803..d7ddb31dbb7 100644 --- a/app/helpers/events_helper.rb +++ b/app/helpers/events_helper.rb @@ -57,7 +57,7 @@ module EventsHelper words << event.ref_name words << "at" elsif event.commented? - if event.note_commit? + if event.commit_note? words << event.note_short_commit_id else words << "##{truncate event.note_target_iid}" @@ -84,12 +84,12 @@ module EventsHelper elsif event.merge_request? namespace_project_merge_request_url(event.project.namespace, event.project, event.merge_request) - elsif event.note? && event.note_commit? + elsif event.note? && event.commit_note? namespace_project_commit_url(event.project.namespace, event.project, event.note_target) elsif event.note? if event.note_target - if event.note_commit? + if event.commit_note? namespace_project_commit_path(event.project.namespace, event.project, event.note_commit_id, anchor: dom_id(event.target)) @@ -134,7 +134,7 @@ module EventsHelper end def event_note_target_path(event) - if event.note? && event.note_commit? + if event.note? && event.commit_note? namespace_project_commit_path(event.project.namespace, event.project, event.note_target) else @@ -146,7 +146,7 @@ module EventsHelper def event_note_title_html(event) if event.note_target - if event.note_commit? + if event.commit_note? link_to( namespace_project_commit_path(event.project.namespace, event.project, event.note_commit_id, |