Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/notes.rb')
-rw-r--r--lib/api/notes.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb
index 418efe3d1a7..656eaa2b2bb 100644
--- a/lib/api/notes.rb
+++ b/lib/api/notes.rb
@@ -4,7 +4,6 @@ module API
class Notes < ::API::Base
include PaginationParams
helpers ::API::Helpers::NotesHelpers
- helpers Helpers::RateLimiter
before { authenticate! }
@@ -88,7 +87,7 @@ module API
note = create_note(noteable, opts)
- if note.errors.keys == [:commands_only]
+ if note.errors.attribute_names == [:commands_only]
status 202
present note, with: Entities::NoteCommands
elsif note.valid?