Skip to content

Commit

Permalink
[api][webui] Refactor Project#branch_project_name
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken authored and adrianschroeter committed Apr 22, 2016
1 parent 74ddcbe commit 1a38692
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/app/models/user.rb
Expand Up @@ -462,8 +462,7 @@ def home_project_name
end

def branch_project_name(branch)
return home_project_name + ":branches:" + branch if branch.kind_of? String
home_project_name + ":branches:" + branch.name
"#{self.home_project_name}:branches:#{branch}"
end

# updates users email address and real name using data transmitted by authentification proxy
Expand Down

0 comments on commit 1a38692

Please sign in to comment.