Sha256: 233ac9c0f37d6797ccfab106a1d5885a039b96ec47c2ea006b9a0682791203e3
Contents?: true
Size: 407 Bytes
Versions: 26
Compression:
Stored size: 407 Bytes
Contents
require_relative "./ar_setup" # Requires the flipper-active_record gem to be installed. require 'flipper/adapters/active_record' adapter = Flipper::Adapters::ActiveRecord.new flipper = Flipper.new(adapter) flipper[:stats].enable if flipper[:stats].enabled? puts "Enabled!" else puts "Disabled!" end flipper[:stats].disable if flipper[:stats].enabled? puts "Enabled!" else puts "Disabled!" end
Version data entries
26 entries across 26 versions & 1 rubygems