Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Denisov <1101.debian@gmail.com>2013-03-19 00:11:28 +0400
committerAlex Denisov <1101.debian@gmail.com>2013-03-19 00:11:28 +0400
commit28e7d1a8bf3ef172331125cf56d92af85ea5e8b2 (patch)
tree0e7ce7a2d32aedb66af00fe07143a61a2e14e5f1 /lib/api/projects.rb
parent6956f1f6e1844c683336eea03d090ed3f306a3f7 (diff)
Abilities added to /user and /sign_in requests
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index e82cfeca45d..d4f50fda1b5 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -191,7 +191,7 @@ module Gitlab
unless team_member.nil?
team_member.destroy
else
- {:message => "Access revoked", :id => params[:user_id].to_i}
+ {message: "Access revoked", id: params[:user_id].to_i}
end
end
@@ -322,7 +322,7 @@ module Gitlab
protected = user_project.protected_branches.find_by_name(@branch.name)
unless protected
- user_project.protected_branches.create(:name => @branch.name)
+ user_project.protected_branches.create(name: @branch.name)
end
present @branch, with: Entities::RepoObject, project: user_project