Sha256: d88f00881eb5df8c1f229f200d84628e69eb6612bdeb7a130e5f5bf6c372e922

Contents?: true

Size: 329 Bytes

Versions: 37

Compression:

Stored size: 329 Bytes

Contents

require_relative "./ar_setup"

# Requires the flipper-active_record gem to be installed.
require 'flipper/adapters/active_record'

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

37 entries across 37 versions & 1 rubygems

Version Path
flipper-active_record-1.3.2 examples/active_record/basic.rb
flipper-active_record-1.3.1 examples/active_record/basic.rb
flipper-active_record-1.3.0 examples/active_record/basic.rb
flipper-active_record-1.3.0.pre examples/active_record/basic.rb
flipper-active_record-1.2.2 examples/active_record/basic.rb
flipper-active_record-1.2.1 examples/active_record/basic.rb
flipper-active_record-1.2.0 examples/active_record/basic.rb
flipper-active_record-1.1.2 examples/active_record/basic.rb
flipper-active_record-1.1.1 examples/active_record/basic.rb
flipper-active_record-1.1.0 examples/active_record/basic.rb
flipper-active_record-1.0.0 examples/active_record/basic.rb
flipper-active_record-1.0.0.pre examples/active_record/basic.rb
flipper-active_record-0.28.3 examples/active_record/basic.rb
flipper-active_record-0.28.2 examples/active_record/basic.rb
flipper-active_record-0.28.1 examples/active_record/basic.rb
flipper-active_record-0.28.0 examples/active_record/basic.rb
flipper-active_record-0.27.1 examples/active_record/basic.rb
flipper-active_record-0.27.0 examples/active_record/basic.rb
flipper-active_record-0.26.2 examples/active_record/basic.rb
flipper-active_record-0.26.1 examples/active_record/basic.rb