Class: ActionController::Base
Instance Method Summary
collapse
#experiment_off?, #experiment_on?
Instance Method Details
#experiment_data ⇒ Object
7
8
9
|
# File 'lib/experiment_light/action_controller/base.rb', line 7
def experiment_data
ExperimentLight::Experiment.experiment_feature_data
end
|
#toggle_feature(experiment, env, value) ⇒ Object
11
12
13
|
# File 'lib/experiment_light/action_controller/base.rb', line 11
def toggle_feature(experiment, env, value)
ExperimentLight::Experiment.update(experiment, env, value)
end
|