diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-07-30 13:35:09 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-07-30 13:35:09 +0300 |
commit | 2a60b8006b1374aec998370f9cfe5b574255712f (patch) | |
tree | 53685e7da52dc2bcece0d706177b6e696b50e2f1 | |
parent | b8066e2cd0c8ae8384b68c81ea3a6c071cd44c51 (diff) |
Fix Project
-rw-r--r-- | app/models/project.rb | 2 |
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 |