Sha256: 07c704ae9240e23990e8125e636cfbd88bc2343e019df2b19863f10309fe1e5b

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

module SimpleSwitch
  module SharedControllerMethods

    def feature_config_info
      SimpleSwitch.feature_manager.feature_config
    end

    def turn_on(feature, env)
      SimpleSwitch.feature_manager.update(feature, env, true)
    end

    def turn_off(feature, env)
      SimpleSwitch.feature_manager.update(feature, env, false)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_switch-0.2.0 lib/simple_switch/shared_controller_methods.rb