Sha256: 8c630557a8bd5c8a4cc7be61b5b29fabb72909e757248e253cc1ec1e27297255
Contents?: true
Size: 294 Bytes
Versions: 1
Compression:
Stored size: 294 Bytes
Contents
module Schmobile module Filters module IsMobileParam def self.call(request) if request.params.key?(Schmobile::IS_MOBILE) request.session[Schmobile::IS_MOBILE] = (request.params[Schmobile::IS_MOBILE] == "true") end nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
schmobile-1.0.0 | lib/schmobile/filters/is_mobile_param.rb |