summaryrefslogtreecommitdiff
path: root/lib/api/notes.rb
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-05-20 14:48:47 +1200
committerThong Kuah <tkuah@gitlab.com>2019-08-28 00:04:12 +1200
commit9ff86452b0c2f21c1f86cd1a14dde69c62d2ff65 (patch)
tree1d570e6be2d5a26c0017b769a0662ae03948cd26 /lib/api/notes.rb
parentdf3c259da67e7184ba8590a1ce55cc43a1247668 (diff)
downloadgitlab-ce-59719-const-get-rubocop.tar.gz
Address ConstGetInheritFalse violations59719-const-get-rubocop
There should be no cases where we need to inherit=true.
Diffstat (limited to 'lib/api/notes.rb')
-rw-r--r--lib/api/notes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb
index 84563d66ee8..a7f61894644 100644
--- a/lib/api/notes.rb
+++ b/lib/api/notes.rb
@@ -80,7 +80,7 @@ module API
note = create_note(noteable, opts)
if note.valid?
- present note, with: Entities.const_get(note.class.name)
+ present note, with: Entities.const_get(note.class.name, false)
else
bad_request!("Note #{note.errors.messages}")
end