Sha256: 3b0e6cf3f41d43f36b115d7337213f59effd8de9cabc4fa30d4dff2854d118f4
Contents?: true
Size: 582 Bytes
Versions: 1
Compression:
Stored size: 582 Bytes
Contents
module FeatureGate class GatedFeaturesController < ApplicationController layout 'feature_gate/application' def index @closed_gates = FeatureGate::GatedFeature.closed @opened_gates = FeatureGate::GatedFeature.opened end def update gate = FeatureGate::GatedFeature.find(params[:id]) if params[:gated] == 'true' gate.gate_feature! flash[:notice] = 'Feature has been gated' else gate.deploy_feature! flash[:success] = 'Feature is live!' end redirect_to gated_features_path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
feature_gate-0.1.2 | app/controllers/feature_gate/gated_features_controller.rb |