debian-mirror-gitlab/app/models/concerns/feature_gate.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
135 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
2017-09-10 17:25:29 +05:30
module FeatureGate
def flipper_id
2019-05-18 00:54:41 +05:30
return if new_record?
2017-09-10 17:25:29 +05:30
"#{self.class.name}:#{id}"
end
end