diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-02 21:22:57 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-02 21:22:57 -0800 |
commit | da884aabc7674c68eee23699efb357bc94aef8d3 (patch) | |
tree | 15565b2814b0e1269a98025330dd31652b9a0129 /lib/api/namespaces.rb | |
parent | 6579c336f96b00bb7897f7cbf2056286c1781281 (diff) | |
download | gitlab-ce-da884aabc7674c68eee23699efb357bc94aef8d3.tar.gz |
Avoid using {...} for multi-line blocks
Diffstat (limited to 'lib/api/namespaces.rb')
-rw-r--r-- | lib/api/namespaces.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/namespaces.rb b/lib/api/namespaces.rb index f9f2ed90ccc..b90ed6af5fb 100644 --- a/lib/api/namespaces.rb +++ b/lib/api/namespaces.rb @@ -1,10 +1,10 @@ module API # namespaces API class Namespaces < Grape::API - before { + before do authenticate! authenticated_as_admin! - } + end resource :namespaces do # Get a namespaces list |