summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorReuben Pereira <rpereira@gitlab.com>2019-05-29 13:36:36 +0000
committerBob Van Landuyt <bob@gitlab.com>2019-05-29 13:36:36 +0000
commit5c088584eccf89f389866d37a1c18400c002eaf8 (patch)
tree7e29b8eb5d498edb6694ac2cbb0e87af5fc5b51a /app/models/project.rb
parentb7bf9a28980e85290d3a1deec410d2809bd8cdd0 (diff)
downloadgitlab-ce-5c088584eccf89f389866d37a1c18400c002eaf8.tar.gz
Make external_dashboard_url available to frontend
- On Operations settings page - On Metrics dashboard page
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index ab4da61dcf8..20895923d3b 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -309,6 +309,7 @@ class Project < ApplicationRecord
delegate :group_clusters_enabled?, to: :group, allow_nil: true
delegate :root_ancestor, to: :namespace, allow_nil: true
delegate :last_pipeline, to: :commit, allow_nil: true
+ delegate :external_dashboard_url, to: :metrics_setting, allow_nil: true, prefix: true
# Validations
validates :creator, presence: true, on: :create