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

Use shorter name since the helper conveys context

parent c97ff884
......@@ -3,7 +3,7 @@
class Groups::UsageQuotasController < Groups::ApplicationController
before_action :authorize_admin_group!
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'
......@@ -20,7 +20,7 @@ class Groups::UsageQuotasController < Groups::ApplicationController
render_404 if @group.has_parent?
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?)
end
end
# frozen_string_literal: true
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
......@@ -10,7 +10,7 @@ class Profiles::UsageQuotasController < Profiles::ApplicationController
@projects = @namespace.projects.with_shared_runners_limit_enabled.page(params[:page])
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?)
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