Class: RolloutControl::GroupsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rollout_control/groups_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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

#destroyObject



14
15
16
17
# File 'app/controllers/rollout_control/groups_controller.rb', line 14

def destroy
  rollout.deactivate_group(feature, group)
  head 204
end