Sha256: 6f7ecf1bb1099ca09469ce7183495241b945e9b5d9d331f9d678913e8440fd62

Contents?: true

Size: 354 Bytes

Versions: 3

Compression:

Stored size: 354 Bytes

Contents

require "rack/simple_user_agent/version"
require "rack/simple_user_agent/detector"
require 'rack/simple_user_agent/railtie' if defined?(Rails)

module Rack
  class SimpleUserAgent
    def initialize(app)
      @app = app
    end

    def call(env)
      @app.call(env)
    end
  end

  class Request
    include Rack::SimpleUserAgent::Detector
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rack-simple_user_agent-0.1.2 lib/rack/simple_user_agent.rb
rack-simple_user_agent-0.1.1 lib/rack/simple_user_agent.rb
rack-simple_user_agent-0.1.0 lib/rack/simple_user_agent.rb