Sha256: 30aae59d3c3a605efb07a5b8fbc148598491c5b755b0222c6b6d530e6219d774
Contents?: true
Size: 421 Bytes
Versions: 5
Compression:
Stored size: 421 Bytes
Contents
module Rack class SimpleUserAgent class Railtie < ::Rails::Railtie initializer "rack-simple_user_agent.configure_rails_initialization" do |app| app.config.middleware.use Rack::SimpleUserAgent ActiveSupport.on_load(:action_controller) do ActionDispatch::Request.class_eval do include Rack::SimpleUserAgent::Detectors end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems