Class: ActionController::Base

Inherits:
Object
  • Object
show all
Includes:
ExperimentLight::HelperMethods
Defined in:
lib/experiment_light/action_controller/base.rb

Instance Method Summary collapse

Methods included from ExperimentLight::HelperMethods

#experiment_off?, #experiment_on?

Instance Method Details

#experiment_dataObject



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