Sha256: 3b1c6bd539780bd43d3ba1cf53507f4000da6e87da090a7d995abf9e5696d3be

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

require 'action_controller'

module ExperimentLight
  class ActionController::Base
    include ExperimentLight::HelperMethods

    def experiment_data
      ExperimentLight::Experiment.experiment_feature_data
    end

    def toggle_feature(experiment, env, value)
      ExperimentLight::Experiment.update(experiment, env, value)
    end

    helper_method :experiment_on?, :experiment_off?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
experiment_light-0.3.0 lib/experiment_light/action_controller/base.rb