Class: RolloutUi::FeaturesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RolloutUi::FeaturesController
- Defined in:
- lib/rollout_ui/engine/app/controllers/rollout_ui/features_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 |
# File 'lib/rollout_ui/engine/app/controllers/rollout_ui/features_controller.rb', line 5 def index @features = @wrapper.features.map{ |feature| RolloutUi::Feature.new(feature) } end |
#update ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/rollout_ui/engine/app/controllers/rollout_ui/features_controller.rb', line 9 def update @feature = RolloutUi::Feature.new(params[:id]) @feature.percentage = params["percentage"] if params["percentage"] @feature.groups = params["groups"] if params["groups"] @feature.user_ids = params["users"] if params["users"] redirect_to features_path end |