module Schmobile::Filters::IsMobileParam
Public Class Methods
call(request)
click to toggle source
# File lib/schmobile/filters/is_mobile_param.rb, line 4 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