Module: Schmobile::Filters::MobileUserAgent
- Defined in:
- lib/schmobile/filters/mobile_user_agent.rb
Class Method Summary collapse
Class Method Details
.call(request) ⇒ Object
6 7 8 |
# File 'lib/schmobile/filters/mobile_user_agent.rb', line 6 def self.call(request) request.session[Schmobile::IS_MOBILE] = Schmobile::UserAgents.is_mobile_agent?(request.user_agent) end |