Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
97c8f825
Commit
97c8f825
authored
Oct 29, 2020
by
Ragnar-H
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use shorter name since the helper conveys context
parent
c97ff884
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
ee/app/controllers/groups/usage_quotas_controller.rb
ee/app/controllers/groups/usage_quotas_controller.rb
+2
-2
ee/app/controllers/profiles/usage_quotas_controller.rb
ee/app/controllers/profiles/usage_quotas_controller.rb
+2
-2
No files found.
ee/app/controllers/groups/usage_quotas_controller.rb
View file @
97c8f825
...
...
@@ -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
ee/app/controllers/profiles/usage_quotas_controller.rb
View file @
97c8f825
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment