Sha256: 64a542f14c16ab52cdb759cc8ce068c37931eb5afbbf55aebe30469973362708
Contents?: true
Size: 384 Bytes
Versions: 3
Compression:
Stored size: 384 Bytes
Contents
require 'rails' module Abtest class Processor def self.process_tests controller Abtest.abtest_config.registered_tests.each do |test_hash| if (test_hash[:check].call(controller.request)) controller.prepend_view_path(test_hash[:prefix]) test_hash[:process].call(controller) unless test_hash[:process].nil? end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
abtest-0.0.5 | lib/abtest/processor.rb |
abtest-0.0.4 | lib/abtest/processor.rb |
abtest-0.0.3 | lib/abtest/processor.rb |