summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-07-30 12:35:09 +0200
committerDouwe Maan <douwe@gitlab.com>2015-07-30 12:35:09 +0200
commit2a60b8006b1374aec998370f9cfe5b574255712f (patch)
tree53685e7da52dc2bcece0d706177b6e696b50e2f1
parentb8066e2cd0c8ae8384b68c81ea3a6c071cd44c51 (diff)
downloadgitlab-ce-api-new-attributes.tar.gz
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 99be170731b..cc2b936ba2a 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -432,7 +432,7 @@ class Project < ActiveRecord::Base
if avatar.present?
[gitlab_config.url, avatar.url].join
elsif avatar_in_git
- [gitlab_config.url, namespace_project_avatar_path(namespace, self)].join
+ Rails.application.routes.url_helpers.namespace_project_avatar_url(namespace, self)
end
end