Class: Flipper::Api::V1::Actions::ClearFeature
- Includes:
- FeatureNameFromRoute
- Defined in:
- lib/flipper/api/v1/actions/clear_feature.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_error_response, #json_response, route, route_match?, route_regex, run, #run, #run_other_action, #status
Constructor Details
This class inherits a constructor from Flipper::Api::Action
Instance Method Details
#delete ⇒ Object
13 14 15 16 17 |
# File 'lib/flipper/api/v1/actions/clear_feature.rb', line 13 def delete feature = flipper[feature_name] feature.clear json_response({}, 204) end |