summaryrefslogtreecommitdiff
path: root/lib/api/namespaces.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-02 21:22:57 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-02 21:22:57 -0800
commitda884aabc7674c68eee23699efb357bc94aef8d3 (patch)
tree15565b2814b0e1269a98025330dd31652b9a0129 /lib/api/namespaces.rb
parent6579c336f96b00bb7897f7cbf2056286c1781281 (diff)
downloadgitlab-ce-da884aabc7674c68eee23699efb357bc94aef8d3.tar.gz
Avoid using {...} for multi-line blocks
Diffstat (limited to 'lib/api/namespaces.rb')
-rw-r--r--lib/api/namespaces.rb4
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