summaryrefslogtreecommitdiff
path: root/app/presenters
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2018-02-21 10:57:41 -0600
committerEric Eastwood <contact@ericeastwood.com>2018-02-21 10:57:41 -0600
commit65da44b25e5af7c8535fa4165e75e22e8b500b52 (patch)
tree9df428285efb38912a12f878d2171f989261c5c9 /app/presenters
parent1fda2c838ec1aca0f9446683c3c741f9995b85a8 (diff)
downloadgitlab-ce-65da44b25e5af7c8535fa4165e75e22e8b500b52.tar.gz
Fix enabled filtering on stat anchors
Diffstat (limited to 'app/presenters')
-rw-r--r--app/presenters/project_presenter.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/presenters/project_presenter.rb b/app/presenters/project_presenter.rb
index d193a182da3..5a46342d47a 100644
--- a/app/presenters/project_presenter.rb
+++ b/app/presenters/project_presenter.rb
@@ -21,7 +21,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
gitlab_ci_anchor_data,
autodevops_anchor_data(show_auto_devops_callout: show_auto_devops_callout),
kubernetes_cluster_anchor_data
- ].compact.reject { |item| !item.enabled? }
+ ].compact.reject { |item| !item.enabled }
end
def statistics_buttons(show_auto_devops_callout:)
@@ -33,14 +33,14 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
kubernetes_cluster_anchor_data,
gitlab_ci_anchor_data,
koding_anchor_data
- ].compact.reject { |item| item.enabled? }
+ ].compact.reject { |item| item.enabled }
end
def empty_repo_statistics_anchors
[
autodevops_anchor_data,
kubernetes_cluster_anchor_data
- ].compact.reject { |item| !item.enabled? }
+ ].compact.reject { |item| !item.enabled }
end
def empty_repo_statistics_buttons
@@ -50,7 +50,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
license_anchor_data,
autodevops_anchor_data,
kubernetes_cluster_anchor_data
- ].compact.reject { |item| item.enabled? }
+ ].compact.reject { |item| item.enabled }
end
def default_view