Commit 6f28cd1d authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'fix_gitlab_experiment_keyword' into 'master'

Fix ruby keyword warning in gitlab_experiment.rb

See merge request gitlab-org/gitlab!53444
parents d9730360 cbed2350
......@@ -55,7 +55,6 @@ module DeprecationToolkitEnv
# one by one
def self.allowed_kwarg_warning_paths
%w[
spec/support/gitlab_experiment.rb
activerecord-6.0.3.4/lib/active_record/migration.rb
devise-4.7.3/lib/devise/test/controller_helpers.rb
activesupport-6.0.3.4/lib/active_support/cache.rb
......
......@@ -6,8 +6,8 @@ require 'gitlab/experiment/rspec'
# This is a temporary fix until we have a larger discussion around the
# challenges raised in https://gitlab.com/gitlab-org/gitlab/-/issues/300104
class ApplicationExperiment < Gitlab::Experiment # rubocop:disable Gitlab/NamespacedClass
def initialize(name = nil, variant_name = nil, **context)
super
def initialize(...)
super(...)
Feature.persist_used!(feature_flag_name)
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