Commit 97c8f825 authored by Ragnar-H's avatar Ragnar-H

Use shorter name since the helper conveys context

parent c97ff884
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
class Groups::UsageQuotasController < Groups::ApplicationController class Groups::UsageQuotasController < Groups::ApplicationController
before_action :authorize_admin_group! before_action :authorize_admin_group!
before_action :verify_usage_quotas_enabled! before_action :verify_usage_quotas_enabled!
before_action :push_additional_repo_storage_by_namespace_feature_flag before_action :push_additional_repo_storage_by_namespace_feature
layout 'group_settings' layout 'group_settings'
...@@ -20,7 +20,7 @@ class Groups::UsageQuotasController < Groups::ApplicationController ...@@ -20,7 +20,7 @@ class Groups::UsageQuotasController < Groups::ApplicationController
render_404 if @group.has_parent? render_404 if @group.has_parent?
end end
def push_additional_repo_storage_by_namespace_feature_flag def push_additional_repo_storage_by_namespace_feature
push_to_gon_features(:additional_repo_storage_by_namespace, @group.additional_repo_storage_by_namespace_enabled?) push_to_gon_features(:additional_repo_storage_by_namespace, @group.additional_repo_storage_by_namespace_enabled?)
end end
end end
# frozen_string_literal: true # frozen_string_literal: true
class Profiles::UsageQuotasController < Profiles::ApplicationController class Profiles::UsageQuotasController < Profiles::ApplicationController
before_action :push_additional_repo_storage_by_namespace_feature_flag before_action :push_additional_repo_storage_by_namespace_feature
feature_category :purchase feature_category :purchase
...@@ -10,7 +10,7 @@ class Profiles::UsageQuotasController < Profiles::ApplicationController ...@@ -10,7 +10,7 @@ class Profiles::UsageQuotasController < Profiles::ApplicationController
@projects = @namespace.projects.with_shared_runners_limit_enabled.page(params[:page]) @projects = @namespace.projects.with_shared_runners_limit_enabled.page(params[:page])
end end
def push_additional_repo_storage_by_namespace_feature_flag def push_additional_repo_storage_by_namespace_feature
push_to_gon_features(:additional_repo_storage_by_namespace, current_user.namespace.additional_repo_storage_by_namespace_enabled?) push_to_gon_features(:additional_repo_storage_by_namespace, current_user.namespace.additional_repo_storage_by_namespace_enabled?)
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment