summaryrefslogtreecommitdiff
path: root/app/controllers/projects/protected_branches_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-23 17:41:10 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-01-23 17:41:10 -0800
commit3dfcb95f0d5a9851b3829f357bc53abb96c0e6ba (patch)
treee85120f0c7acfb5c2a1add5f5f6e1edac287e195 /app/controllers/projects/protected_branches_controller.rb
parent630ff5744b58923890a269762bf3a3c9b1f6663f (diff)
downloadgitlab-ce-3dfcb95f0d5a9851b3829f357bc53abb96c0e6ba.tar.gz
Use ruby 1.9 hash syntax
Diffstat (limited to 'app/controllers/projects/protected_branches_controller.rb')
-rw-r--r--app/controllers/projects/protected_branches_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/protected_branches_controller.rb b/app/controllers/projects/protected_branches_controller.rb
index 02160d973b3..f45df38b87c 100644
--- a/app/controllers/projects/protected_branches_controller.rb
+++ b/app/controllers/projects/protected_branches_controller.rb
@@ -24,7 +24,7 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController
)
respond_to do |format|
- format.json { render :json => protected_branch, status: :ok }
+ format.json { render json: protected_branch, status: :ok }
end
else
respond_to do |format|