Sha256: fc845330029be4972043de3c2f9d5dfb1ec62322ea0115b497fd9192f085bb7f
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 Bytes
Contents
require "distribution/math_extension" require "browser" require "field_test/experiment" require "field_test/engine" require "field_test/helpers" require "field_test/participant" require "field_test/version" module FieldTest class Error < StandardError; end class ExperimentNotFound < Error; end class UnknownParticipant < Error; end def self.config # reload in dev @config = nil if Rails.env.development? @config ||= YAML.load(ERB.new(File.read("config/field_test.yml")).result) end def self.exclude_bots? config = self.config # dev performance config["exclude"] && config["exclude"]["bots"] end end ActiveSupport.on_load(:action_controller) do include FieldTest::Helpers end ActiveSupport.on_load(:action_view) do include FieldTest::Helpers end ActiveSupport.on_load(:action_mailer) do include FieldTest::Helpers end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
field_test-0.1.2 | lib/field_test.rb |