Class: Flipflop::StrategiesController

Inherits:
ApplicationController
  • Object
show all
Includes:
ActionController::RequestForgeryProtection
Defined in:
app/controllers/flipflop/strategies_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



10
11
12
13
# File 'app/controllers/flipflop/strategies_controller.rb', line 10

def destroy
  FeatureSet.current.clear!(feature_key, strategy_key)
  redirect_to(features_url)
end

#updateObject



5
6
7
8
# File 'app/controllers/flipflop/strategies_controller.rb', line 5

def update
  FeatureSet.current.switch!(feature_key, strategy_key, enable?)
  redirect_to(features_url)
end