This website requires JavaScript.
Explore
Help
Sign in
kotovalexarian-likes-gitlab
/
gitlab-org--gitlab-foss
Watch
1
Star
0
Fork
You've already forked gitlab-org--gitlab-foss
0
Code
Releases
Activity
0233fffe28
gitlab-org--gitlab-foss
/
app
/
models
/
concerns
/
feature_gate.rb
8 lines
108 B
Ruby
Raw
Normal View
History
Unescape
Escape
Rename FLippable to FeatureGate and make `flipper_group` and `user` mutually exclusive Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-27 12:58:56 -04:00
module
FeatureGate
Allow the feature flags to be enabled/disabled with more granularity This allows to enable/disable a feature flag for a given user, or a given Flipper group (must be declared statically in the `flipper.rb` initializer beforehand). Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-21 10:49:51 -04:00
def
flipper_id
return
nil
if
new_record?
"
#{
self
.
class
.
name
}
:
#{
id
}
"
end
end
Copy permalink