Sha256: 1e953ca4ca62341cc518faa10b49a1caf1f2fc22e3df9fde569c82697c41052e

Contents?: true

Size: 536 Bytes

Versions: 3

Compression:

Stored size: 536 Bytes

Contents

require 'rails'

module Abtest
  class Railtie < ::Rails::Railtie
    rake_tasks do
      Dir[File.join(File.dirname(__FILE__),'tasks/*.rake')].each { |f| load f }
    end
  
    initializer "abtest.set_config", :after => 'bootstrap_hook' do
      config.abtest = ActiveSupport::OrderedOptions.new
      config.abtest.registered_tests = Set.new
    end

    initializer "abtest.set_filter" do
      ActiveSupport.on_load(:action_controller) do
        ActionController::Base.send(:include, Abtest::Filters)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
abtest-0.0.5 lib/abtest/railtie.rb
abtest-0.0.4 lib/abtest/railtie.rb
abtest-0.0.3 lib/abtest/railtie.rb