Sha256: 9ac2cdf6392ee5c39df2766b8998ae34b6b2e6a2ba6bc3d50f9cfc66e7efe553

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 Bytes

Contents

require 'action_controller'

module ExperimentLight
  class ActionController::Base

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

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

    helper_method :experiment_on?, :experiment_off?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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