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
cbed2350
Commit
cbed2350
authored
Feb 05, 2021
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ruby keyword warning in gitlab_experiment.rb
parent
b44fe05c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
spec/deprecation_toolkit_env.rb
spec/deprecation_toolkit_env.rb
+0
-1
spec/support/gitlab_experiment.rb
spec/support/gitlab_experiment.rb
+2
-2
No files found.
spec/deprecation_toolkit_env.rb
View file @
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
grape-1.5.1/lib/grape/middleware/stack.rb
...
...
spec/support/gitlab_experiment.rb
View file @
cbed2350
...
...
@@ -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
...
...
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