Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/protected_refs/access_level_params.rb')
-rw-r--r--app/services/protected_refs/access_level_params.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/protected_refs/access_level_params.rb b/app/services/protected_refs/access_level_params.rb
index 59fc17868d1..a421964a6ab 100644
--- a/app/services/protected_refs/access_level_params.rb
+++ b/app/services/protected_refs/access_level_params.rb
@@ -4,9 +4,9 @@ module ProtectedRefs
class AccessLevelParams
attr_reader :type, :params
- def initialize(type, params)
+ def initialize(type, params, with_defaults: true)
@type = type
- @params = params_with_default(params)
+ @params = with_defaults ? params_with_default(params) : params
end
def access_levels