Sha256: 390d9d9ccdacf3f45ed7f532ac928ab9d15a2f459c582e13dda9499fabd964a9
Contents?: true
Size: 610 Bytes
Versions: 4
Compression:
Stored size: 610 Bytes
Contents
module RolloutUi class FeaturesController < ApplicationController before_filter :wrapper def index @features = @wrapper.features.map{ |feature| RolloutUi::Feature.new(feature) } end 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 private def wrapper @wrapper = RolloutUi::Wrapper.new end end end
Version data entries
4 entries across 4 versions & 2 rubygems