Class: Flip::StrategiesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/flip/strategies_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



11
12
13
14
# File 'app/controllers/flip/strategies_controller.rb', line 11

def destroy
  strategy.delete! feature_key
  redirect_to features_url
end

#updateObject



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