diff options
author | Angelo Lakra <angelo.lakra@gmail.com> | 2013-10-09 01:15:08 -0600 |
---|---|---|
committer | Angelo Lakra <angelo.lakra@gmail.com> | 2013-10-09 01:15:08 -0600 |
commit | b035790a8a39ec6f7d4c1d2f9f097dc9a8ce5aa4 (patch) | |
tree | 7120369dee18eff372777ebafc7a7fcdd391e840 /lib/api/helpers.rb | |
parent | 288fda4f5617d3eb6689317267b953d02fd40d1f (diff) | |
download | gitlab-ci-b035790a8a39ec6f7d4c1d2f9f097dc9a8ce5aa4.tar.gz |
Adding further documentation and corrections on builds and runners
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 13719b4..4bea5a2 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -13,6 +13,10 @@ module API end end + def current_runner + @runner ||= Runner.find_by_token(params[:token]) + end + def authenticate! forbidden! unless current_user end @@ -25,10 +29,6 @@ module API forbidden! unless current_runner end - def current_runner - @runner ||= Runner.find_by_token(params[:token]) - end - # Checks the occurrences of required attributes, each attribute must be present in the params hash # or a Bad Request error is invoked. # |