Class: RolloutControl::GroupsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RolloutControl::GroupsController
- Defined in:
- app/controllers/rollout_control/groups_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/controllers/rollout_control/groups_controller.rb', line 5 def create if group rollout.activate_group(feature, group) head 204 else head 400 end end |
#destroy ⇒ Object
14 15 16 17 |
# File 'app/controllers/rollout_control/groups_controller.rb', line 14 def destroy rollout.deactivate_group(feature, group) head 204 end |