Sha256: c6e69af0040564e48720beddae0e7a5cdff4c34fdbe2d97695b220560d7735d7

Contents?: true

Size: 263 Bytes

Versions: 5

Compression:

Stored size: 263 Bytes

Contents

require 'rack/schmobile/user_agents'

module Rack
  module Schmobile
    module Filters
      module MobileUserAgent
        def self.call(request)
          Rack::Schmobile::UserAgents.is_mobile_agent?(request.user_agent)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
schmobile-0.2.0 lib/rack/schmobile/filters/mobile_user_agent.rb
schmobile-0.1.3 lib/rack/schmobile/filters/mobile_user_agent.rb
schmobile-0.1.2 lib/rack/schmobile/filters/mobile_user_agent.rb
schmobile-0.1.1 lib/rack/schmobile/filters/mobile_user_agent.rb
schmobile-0.1.0 lib/rack/schmobile/filters/mobile_user_agent.rb