diff options
author | Reuben Pereira <rpereira@gitlab.com> | 2019-05-29 13:36:36 +0000 |
---|---|---|
committer | Bob Van Landuyt <bob@gitlab.com> | 2019-05-29 13:36:36 +0000 |
commit | 5c088584eccf89f389866d37a1c18400c002eaf8 (patch) | |
tree | 7e29b8eb5d498edb6694ac2cbb0e87af5fc5b51a /app/models | |
parent | b7bf9a28980e85290d3a1deec410d2809bd8cdd0 (diff) | |
download | gitlab-ce-5c088584eccf89f389866d37a1c18400c002eaf8.tar.gz |
Make external_dashboard_url available to frontend
- On Operations settings page
- On Metrics dashboard page
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 1 |
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 |