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