class SupportSegment::MobileDetect::Constraint
Public Instance Methods
matches?(request)
click to toggle source
# File lib/support_segment/mobile_detect.rb, line 5 def matches?(request) return false if request.cookies[:full_site_form_mobile] || request.host.match(/^m./) request.user_agent.to_s.match(/Mobile/) end