Class: Flip::StrategiesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Flip::StrategiesController
- Defined in:
- app/controllers/flip/strategies_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
11 12 13 14 |
# File 'app/controllers/flip/strategies_controller.rb', line 11 def destroy strategy.delete! feature_key redirect_to features_url end |
#update ⇒ Object
6 7 8 9 |
# File 'app/controllers/flip/strategies_controller.rb', line 6 def update strategy.switch! feature_key, turn_on? redirect_to features_url end |