Class: Flipper::Api::V1::Actions::BooleanGate
- Defined in:
- lib/flipper/api/v1/actions/boolean_gate.rb
Constant Summary
Constants inherited from Action
Action::VALID_REQUEST_METHOD_NAMES
Instance Attribute Summary
Attributes inherited from Action
Instance Method Summary collapse
Methods inherited from Action
#halt, #header, #initialize, #json_response, regex, route, run, #run, #run_other_action, #status
Constructor Details
This class inherits a constructor from Flipper::Api::Action
Instance Method Details
#put ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/flipper/api/v1/actions/boolean_gate.rb', line 10 def put feature_name = Rack::Utils.unescape(path_parts[-2]) feature = flipper[feature_name.to_sym] action = Rack::Utils.unescape(path_parts.last) feature.send(action) json_response({}, 204) end |