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 ...@@ -93,7 +93,7 @@ module EventsHelper
namespace_project_commit_path(event.project.namespace, event.project, namespace_project_commit_path(event.project.namespace, event.project,
event.note_commit_id, event.note_commit_id,
anchor: dom_id(event.target)) anchor: dom_id(event.target))
elsif event.note_project_snippet? elsif event.project_snippet_note?
namespace_project_snippet_path(event.project.namespace, namespace_project_snippet_path(event.project.namespace,
event.project, event.note_target) event.project, event.note_target)
else else
...@@ -156,7 +156,7 @@ module EventsHelper ...@@ -156,7 +156,7 @@ module EventsHelper
) do ) do
"#{event.note_target_type} #{event.note_short_commit_id}" "#{event.note_target_type} #{event.note_short_commit_id}"
end end
elsif event.note_project_snippet? elsif event.project_snippet_note?
link_to(namespace_project_snippet_path(event.project.namespace, link_to(namespace_project_snippet_path(event.project.namespace,
event.project, event.project,
event.note_target), title: event.project.name) do event.note_target), title: event.project.name) do
......
...@@ -286,7 +286,7 @@ class Event < ActiveRecord::Base ...@@ -286,7 +286,7 @@ class Event < ActiveRecord::Base
note? && target && target.for_issue? note? && target && target.for_issue?
end end
def note_project_snippet? def project_snippet_note?
target.for_snippet? target.for_snippet?
end 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