Sha256: 7417e7c42705cc042c999eadf7532661915e5e925f4ed932a95c87cefebf5ead

Contents?: true

Size: 612 Bytes

Versions: 3

Compression:

Stored size: 612 Bytes

Contents

# frozen_string_literal: true

module Bp3
  module ActionDispatch
    if defined?(Rails.env)
      class Railtie < Rails::Railtie
        initializer 'bp3.action_dispatch.railtie.register' do |app|
          app.config.after_initialize do
            ::ActionDispatch::Request # preload
            module ::ActionDispatch
              class Request
                include Bp3::ActionDispatch::RequestHost
                include Bp3::ActionDispatch::RequestSite
                include Bp3::ActionDispatch::RequestLocale
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bp3-action_dispatch-0.1.3 lib/bp3/action_dispatch/railtie.rb
bp3-action_dispatch-0.1.2 lib/bp3/action_dispatch/railtie.rb
bp3-action_dispatch-0.1.1 lib/bp3/action_dispatch/railtie.rb