Module: Flipper::Rails

Defined in:
lib/flipper/rails.rb,
lib/flipper/rails/options.rb,
lib/flipper/rails/railtie.rb,
lib/flipper/rails/version.rb

Defined Under Namespace

Classes: Options, Railtie

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.flipperObject



3
4
5
6
7
8
9
# File 'lib/flipper/rails.rb', line 3

def self.flipper
  @flipper ||= Flipper.new(
    ::Rails.application.config.flipper[:adapter].new(
      ::Rails.application.config.flipper[:adapter_options] || {}
    )
  )
end