Commit cbed2350 authored by Thong Kuah's avatar Thong Kuah

Fix ruby keyword warning in gitlab_experiment.rb

parent b44fe05c
......@@ -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
grape-1.5.1/lib/grape/middleware/stack.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