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
path: root/lib/api
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-12-28 14:36:28 +0300
committerRobert Schilling <rschilling@student.tugraz.at>2016-12-28 14:36:28 +0300
commit465700ddc2fa43bf32bc2ed08d9c30e420aec5e2 (patch)
tree66a39239e05ec326273ba42add41e72956b8e9fd /lib/api
parent8aba0b0ed0ba93c59296f707f8c9a7d8ab1b498f (diff)
parent1b109c99a4802e2cc6598d19248013c0dc152d7a (diff)
Merge branch 'fix-api-deprecation' into 'master'
Fix a Grape deprecation, use `#request_method` instead of `#route_method` See merge request !8297
Diffstat (limited to 'lib/api')
-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 fe00c83bff3..ee9247ee240 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!