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-0.26.0 examples/active_record/basic.rb
flipper-active_record-0.26.0.rc2 examples/active_record/basic.rb
flipper-active_record-0.26.0.rc1 examples/active_record/basic.rb
flipper-active_record-0.25.4 examples/active_record/basic.rb
flipper-active_record-0.25.3 examples/active_record/basic.rb
flipper-active_record-0.25.2 examples/active_record/basic.rb
flipper-active_record-0.25.1 examples/active_record/basic.rb
flipper-active_record-0.25.0 examples/active_record/basic.rb
flipper-active_record-0.24.1 examples/active_record/basic.rb
flipper-active_record-0.24.0 examples/active_record/basic.rb
flipper-active_record-0.23.1 examples/active_record/basic.rb
flipper-active_record-0.23.0 examples/active_record/basic.rb
flipper-active_record-0.22.2 examples/active_record/basic.rb
flipper-active_record-0.22.1 examples/active_record/basic.rb
flipper-active_record-0.22.0 examples/active_record/basic.rb
flipper-active_record-0.21.0 examples/active_record/basic.rb
flipper-active_record-0.21.0.rc2 examples/active_record/basic.rb