gitlab-org--gitlab-foss/app/models/concerns/feature_gate.rb
Rémy Coutable 5fa9d6a17d Rename FLippable to FeatureGate and make flipper_group and user mutually exclusive
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-27 18:59:51 +02:00

7 lines
108 B
Ruby

module FeatureGate
def flipper_id
return nil if new_record?
"#{self.class.name}:#{id}"
end
end