diff options
author | Robert Speicher <robert@gitlab.com> | 2016-04-01 19:51:20 +0300 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-04-01 19:51:20 +0300 |
commit | 5627542fd4f2d24f7f5b13cc6143d2b75aaac0e1 (patch) | |
tree | 50f2d4c0d6e806b0baca9d5aad1afa36e277837d /app/models/milestone.rb | |
parent | c8038dc2439aa52331c08793c5ee609ed53e94e4 (diff) | |
parent | 84b0ab77667b85a42db8a5a02d9758657af66f16 (diff) |
Merge branch 'routing' into 'master'
Added & use Gitlab::Routing for URL helpers
Extracted from !3389
See merge request !3486
Diffstat (limited to 'app/models/milestone.rb')
-rw-r--r-- | app/models/milestone.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/milestone.rb b/app/models/milestone.rb index 07196c0fca4..986184dd301 100644 --- a/app/models/milestone.rb +++ b/app/models/milestone.rb @@ -89,7 +89,7 @@ class Milestone < ActiveRecord::Base def to_reference(from_project = nil) escaped_title = self.title.gsub("]", "\\]") - h = Gitlab::Application.routes.url_helpers + h = Gitlab::Routing.url_helpers url = h.namespace_project_milestone_url(self.project.namespace, self.project, self) "[#{escaped_title}](#{url})" |