summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index de9478ce68d..0434f0963d3 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -367,7 +367,7 @@ class Note < ApplicationRecord
end
def noteable_ability_name
- for_snippet? ? noteable.class.name.underscore : noteable_type.demodulize.underscore
+ for_snippet? ? 'snippet' : noteable_type.demodulize.underscore
end
def can_be_discussion_note?