diff options
author | Rémy Coutable <remy@rymai.me> | 2016-12-23 19:03:25 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-12-23 21:07:23 +0300 |
commit | 1b109c99a4802e2cc6598d19248013c0dc152d7a (patch) | |
tree | d9c9e601a029abd6cde08119032396923e17cfa5 /lib/api/helpers.rb | |
parent | 5866f7b30e2a5c0350cdef0872ba161c387ae7de (diff) |
Fix a Grape deprecation, use `#request_method` instead of `#route_method`
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 2 |
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! |