class Flipper::Api::V1::Actions::BooleanGate

Public Instance Methods

delete() click to toggle source
# File lib/flipper/api/v1/actions/boolean_gate.rb, line 20
def delete
  feature = flipper[feature_name.to_sym]
  feature.disable
  decorated_feature = Decorators::Feature.new(feature)
  json_response(decorated_feature.as_json, 200)
end
post() click to toggle source
# File lib/flipper/api/v1/actions/boolean_gate.rb, line 13
def post
  feature = flipper[feature_name]
  feature.enable
  decorated_feature = Decorators::Feature.new(feature)
  json_response(decorated_feature.as_json, 200)
end