Class: Flipflop::StrategiesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Flipflop::StrategiesController
- Includes:
- ActionController::RequestForgeryProtection
- Defined in:
- app/controllers/flipflop/strategies_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
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 |
#update ⇒ Object
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 |