Class: ActionController::Base

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

Instance Method Summary collapse

Instance Method Details

#experiment_off?(experiment_name) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/experiment_light/action_controller/base.rb', line 10

def experiment_off?(experiment_name)
  !experiment_on?(experiment_name)
end

#experiment_on?(experiment_name) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/experiment_light/action_controller/base.rb', line 6

def experiment_on?(experiment_name)
  ExperimentLight::Experiment.on?(experiment_name)
end