class Flipper::Api::V1::Actions::ActorsGate
Public Instance Methods
delete()
click to toggle source
# File lib/flipper/api/v1/actions/actors_gate.rb, line 22 def delete ensure_valid_params feature = flipper[feature_name] actor = Actor.new(flipper_id) feature.disable_actor(actor) 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/actors_gate.rb, line 13 def post ensure_valid_params feature = flipper[feature_name] actor = Actor.new(flipper_id) feature.enable_actor(actor) decorated_feature = Decorators::Feature.new(feature) json_response(decorated_feature.as_json, 200) end
Private Instance Methods
ensure_valid_params()
click to toggle source
# File lib/flipper/api/v1/actions/actors_gate.rb, line 33 def ensure_valid_params json_error_response(:flipper_id_invalid) if flipper_id.nil? end
flipper_id()
click to toggle source
# File lib/flipper/api/v1/actions/actors_gate.rb, line 37 def flipper_id @flipper_id ||= params['flipper_id'] end