Sha256: f1e4b44dff5892a78ff25a921186b8cbe4acf0b7e0c87117afdd47c9eec0500e

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

require 'active_record'

module ExperimentLight
  class ActiveRecord::Base

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

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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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