diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:44:37 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:44:37 -0600 |
commit | ade5e0b1ba04047c72cb0aff3d635a2cdaaab43c (patch) | |
tree | 8830af3d47518f62930585e4f92bbee814519506 /lib/api/v3/notes.rb | |
parent | f88ff0cc0c5c1db7089a5f0062a53d38eb27ebde (diff) | |
download | gitlab-ce-ade5e0b1ba04047c72cb0aff3d635a2cdaaab43c.tar.gz |
Fix new offensesdm-meer-blauw-op-straat
Diffstat (limited to 'lib/api/v3/notes.rb')
-rw-r--r-- | lib/api/v3/notes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/v3/notes.rb b/lib/api/v3/notes.rb index 6531598d590..0796bb62e68 100644 --- a/lib/api/v3/notes.rb +++ b/lib/api/v3/notes.rb @@ -5,7 +5,7 @@ module API before { authenticate! } - NOTEABLE_TYPES = [Issue, MergeRequest, Snippet] + NOTEABLE_TYPES = [Issue, MergeRequest, Snippet].freeze params do requires :id, type: String, desc: 'The ID of a project' @@ -85,7 +85,7 @@ module API note = ::Notes::CreateService.new(user_project, current_user, opts).execute if note.valid? - present note, with: ::API::V3::Entities::const_get(note.class.name) + present note, with: ::API::V3::Entities.const_get(note.class.name) else not_found!("Note #{note.errors.messages}") end |