diff options
author | yguo <yguo@gitlab.com> | 2019-06-17 11:31:55 -0400 |
---|---|---|
committer | yguo <yguo@gitlab.com> | 2019-06-17 11:31:55 -0400 |
commit | 03d40ec845d83c9ecef6739c710137ff4183573b (patch) | |
tree | d6ed89848e227fad612c213acd9c766440599e0d /app/models/note.rb | |
parent | 74db1abb6ce6b70d775e7b3d54f59ea431de9082 (diff) | |
parent | 08ed6b1720ff4d6e2b45a97000a106071d650194 (diff) | |
download | gitlab-ce-issue-62685.tar.gz |
Merge from masterissue-62685
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 081d6f91230..15271c68a9e 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -342,7 +342,7 @@ class Note < ApplicationRecord end def to_ability_name - for_snippet? ? noteable.class.name.underscore : noteable_type.underscore + for_snippet? ? noteable.class.name.underscore : noteable_type.demodulize.underscore end def can_be_discussion_note? |