Sha256: ff93bcfa8256f524e09599dfe0f163bb40efefc5ec2b5484758a74dbdd0b46a4
Contents?: true
Size: 166 Bytes
Versions: 2
Compression:
Stored size: 166 Bytes
Contents
class FeatureGate def self.gate(name) gated_feature = GatedFeature.where(name: name).first_or_create if !gated_feature.gated? yield end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
feature_gate-0.0.4 | app/models/feature_gate.rb |
feature_gate-0.0.3 | app/models/feature_gate.rb |