lib/flipper/ui/actions/boolean_gate.rb in flipper-ui-0.10.2 vs lib/flipper/ui/actions/boolean_gate.rb in flipper-ui-0.11.0.beta1
- old
+ new
@@ -6,14 +6,14 @@
module Actions
class BooleanGate < UI::Action
route %r{features/[^/]*/boolean/?\Z}
def post
- feature_name = Rack::Utils.unescape(request.path.split("/")[-2])
+ feature_name = Rack::Utils.unescape(request.path.split('/')[-2])
feature = flipper[feature_name.to_sym]
@feature = Decorators::Feature.new(feature)
- if params["action"] == "Enable"
+ if params['action'] == 'Enable'
feature.enable
else
feature.disable
end