summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-12-23 17:03:25 +0100
committerRémy Coutable <remy@rymai.me>2016-12-23 19:07:23 +0100
commit1b109c99a4802e2cc6598d19248013c0dc152d7a (patch)
treed9c9e601a029abd6cde08119032396923e17cfa5 /lib/api/helpers.rb
parent5866f7b30e2a5c0350cdef0872ba161c387ae7de (diff)
downloadgitlab-ce-1b109c99a4802e2cc6598d19248013c0dc152d7a.tar.gz
Fix a Grape deprecation, use `#request_method` instead of `#route_method`fix-api-deprecation
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index 4be659fc20b..151d7400549 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -96,7 +96,7 @@ module API
end
def authenticate_non_get!
- authenticate! unless %w[GET HEAD].include?(route.route_method)
+ authenticate! unless %w[GET HEAD].include?(route.request_method)
end
def authenticate_by_gitlab_shell_token!