Sha256: e66cdcbe405ddd24cf97c931bcf75cbf0f1a9ad0e758b7a72d781c1a7ef8b1fe

Contents?: true

Size: 588 Bytes

Versions: 3

Compression:

Stored size: 588 Bytes

Contents

require 'rack/schmobile/filters/is_mobile_param'
require 'rack/schmobile/filters/mobile_user_agent'

module Rack
  module Schmobile
    # Filters are tests that get run against a request to detrmine if it's a mobile request or not.
    # A filter can return true, false or nil. The first non-nil value of the filter chain is the
    # one that gets used.
    #
    # You can modify the chain to add new conditions that check on e.g. request format.
    module Filters
      CHAIN = [ Rack::Schmobile::Filters::IsMobileParam, Rack::Schmobile::Filters::MobileUserAgent ]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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