summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-30 11:26:01 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-30 11:26:01 +0200
commitb34fca92cde3e90ecd883ec3549ea64dc7e5ba80 (patch)
tree5cf3d7249e4e81f802f04877f0ef58128fa77a64 /lib/api/helpers.rb
parenta25ec068e2856369ec6fae661e8b2fde7a534c02 (diff)
downloadgitlab-ci-b34fca92cde3e90ecd883ec3549ea64dc7e5ba80.tar.gz
Uppercase constants
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
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 28a3f2b..fb57938 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -22,7 +22,7 @@ module API
end
def authenticate_runners!
- forbidden! unless params[:token] == GitlabCi::RunnersToken
+ forbidden! unless params[:token] == GitlabCi::RUNNERS_TOKEN
end
def authenticate_runner!