Sha256: 6ec0355a2c4f657ffde0e04ad8433f918f4f72c22df4935d52d5f7f37665e711
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
# frozen_string_literal: true require "rails/railtie" require "browser/action_controller" require "browser/middleware/context/additions" module Browser class Railtie < Rails::Railtie config.browser = ActiveSupport::OrderedOptions.new initializer "browser" do ActiveSupport.on_load(:action_controller) do ::ActionController::Base.include(Browser::ActionController) ::ActionController::Metal.include(Browser::ActionController) if defined?(::ActionController::Metal) # rubocop:disable Metrics/LineLength Browser::Middleware::Context.include( Browser::Middleware::Context::Additions ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
browser-2.7.1 | lib/browser/rails.rb |