Sha256: 452ab6b3c8fd46e93dcd296eabb788a19eb2922ae0af8fd24a4973706584bdd4
Contents?: true
Size: 241 Bytes
Versions: 1
Compression:
Stored size: 241 Bytes
Contents
class GatedFeature < ActiveRecord::Base validates :name, presence: true validates :gated, inclusion: { in: [true, false] } def turn_on! self.gated = false save! end def turn_off! self.gated = true save! end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feature_gate-0.0.6 | app/models/gated_feature.rb |