Sha256: 4f6cd2846ff0472985e26b5a677dfa92f2107c9d5fb0c80ee4909f15d60a13f4

Contents?: true

Size: 531 Bytes

Versions: 6

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

module Split
  class Engine < ::Rails::Engine
    initializer "split" do |app|
      if Split.configuration.include_rails_helper
        ActiveSupport.on_load(:action_controller) do
          ::ActionController::Base.send :include, Split::Helper
          ::ActionController::Base.helper Split::Helper
          ::ActionController::Base.send :include, Split::CombinedExperimentsHelper
          ::ActionController::Base.helper Split::CombinedExperimentsHelper
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
split-4.0.4 lib/split/engine.rb
split-4.0.3 lib/split/engine.rb
split-4.0.2 lib/split/engine.rb
split-4.0.1 lib/split/engine.rb
split-4.0.0.pre2 lib/split/engine.rb
split-4.0.0.pre lib/split/engine.rb