Commit 0ec2ee71 authored by Robert Speicher's avatar Robert Speicher

Rename `Event#note_project_snippet?` to `project_snippet_note?`

parent b2fc0a51
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment