summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-07-07 18:37:04 +0000
committerDouwe Maan <douwe@gitlab.com>2017-07-07 18:37:04 +0000
commit426271dacbb3b7462e4f7a78fa3628bbd267609a (patch)
tree930dabccfd90cfad90e7aa86dd557bc309c075c9 /app/models
parent787a23475a6de02438608d2af8d21577afbbd447 (diff)
parentc81928cfa757b6f42debd6d1c3b6cdb860fc14f5 (diff)
downloadgitlab-ce-426271dacbb3b7462e4f7a78fa3628bbd267609a.tar.gz
Merge branch 'dm-fix-project-path-helpers-production' into 'master'
Include new URL helpers retroactively into includers of Gitlab::Routing Closes #34821 See merge request !12716
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project_services/gitlab_issue_tracker_service.rb2
-rw-r--r--app/models/project_services/jira_service.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_services/gitlab_issue_tracker_service.rb b/app/models/project_services/gitlab_issue_tracker_service.rb
index 5e31f393bbe..420102875a5 100644
--- a/app/models/project_services/gitlab_issue_tracker_service.rb
+++ b/app/models/project_services/gitlab_issue_tracker_service.rb
@@ -1,5 +1,5 @@
class GitlabIssueTrackerService < IssueTrackerService
- include Gitlab::Routing.url_helpers
+ include Gitlab::Routing
validates :project_url, :issues_url, :new_issue_url, presence: true, url: true, if: :activated?
diff --git a/app/models/project_services/jira_service.rb b/app/models/project_services/jira_service.rb
index 8af642b44aa..5498a2e17b2 100644
--- a/app/models/project_services/jira_service.rb
+++ b/app/models/project_services/jira_service.rb
@@ -1,5 +1,5 @@
class JiraService < IssueTrackerService
- include Gitlab::Routing.url_helpers
+ include Gitlab::Routing
validates :url, url: true, presence: true, if: :activated?
validates :api_url, url: true, allow_blank: true