summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-05-12 15:37:00 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-05-16 14:52:04 -0500
commit0ec2ee71b31ea604a677e28ffb84f3ded1701395 (patch)
treecffbcbdb68c8a46c343c19ee43e7f8c81a0fcaf7
parentb2fc0a51a61669b46516c2a21cbd0abd893ff124 (diff)
downloadgitlab-ce-0ec2ee71b31ea604a677e28ffb84f3ded1701395.tar.gz
Rename `Event#note_project_snippet?` to `project_snippet_note?`
-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