summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGitLab <devaroop123@yahoo.co.in>2014-02-11 19:04:47 +0530
committerGitLab <devaroop123@yahoo.co.in>2014-02-11 19:04:47 +0530
commit46ad09bf70400eeebab5495ee6a5ded4da86012e (patch)
tree0501f89cfaf71108bb95d1a1dbadb1bebf7634f8 /config
parent5101ff7bec35704d844df8e608f604abd22df57a (diff)
downloadgitlab-ce-46ad09bf70400eeebab5495ee6a5ded4da86012e.tar.gz
code refactor as per standards
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 1cc6242c623..8c66ad741f9 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -12,7 +12,7 @@ Gitlab::Application.routes.draw do
API::API.logger Rails.logger
mount API::API => '/api'
- #get all keys of user
+ # Get all keys of user
get ':username.keys' => 'profiles/keys#get_keys' , constraints: { username: /.*/ }
constraint = lambda { |request| request.env["warden"].authenticate? and request.env['warden'].user.admin? }