Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
6ac559365dd9
Commit
ef1028e0
authored
Oct 05, 2018
by
Douglas Barbosa Alexandre
Browse files
Refactor Feature.flipper method
parent
01b6b8336181
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/feature.rb
View file @
6ac55936
...
...
@@ -72,7 +72,11 @@ def disable_group(key, group)
end
def
flipper
@flipper
||=
(
Gitlab
::
SafeRequestStore
[
:flipper
]
||=
build_flipper_instance
)
if
Gitlab
::
SafeRequestStore
.
active?
Gitlab
::
SafeRequestStore
[
:flipper
]
||=
build_flipper_instance
else
@flipper
||=
build_flipper_instance
end
end
def
build_flipper_instance
...
...
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