summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/helpers/events_helper.rb4
-rw-r--r--app/models/event.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb
index d7ddb31dbb7..19281e3f3aa 100644
--- a/app/helpers/events_helper.rb
+++ b/app/helpers/events_helper.rb
@@ -93,7 +93,7 @@ module EventsHelper
namespace_project_commit_path(event.project.namespace, event.project,
event.note_commit_id,
anchor: dom_id(event.target))
- elsif event.note_project_snippet?
+ elsif event.project_snippet_note?
namespace_project_snippet_path(event.project.namespace,
event.project, event.note_target)
else
@@ -156,7 +156,7 @@ module EventsHelper
) do
"#{event.note_target_type} #{event.note_short_commit_id}"
end
- elsif event.note_project_snippet?
+ elsif event.project_snippet_note?
link_to(namespace_project_snippet_path(event.project.namespace,
event.project,
event.note_target), title: event.project.name) do
diff --git a/app/models/event.rb b/app/models/event.rb
index 5629f1ee445..2e9da42deaa 100644
--- a/app/models/event.rb
+++ b/app/models/event.rb
@@ -286,7 +286,7 @@ class Event < ActiveRecord::Base
note? && target && target.for_issue?
end
- def note_project_snippet?
+ def project_snippet_note?
target.for_snippet?
end