Module: Schmobile::Request
- Defined in:
- lib/schmobile/request_extension.rb
Instance Method Summary collapse
Instance Method Details
#is_device?(identifier) ⇒ Boolean
16 17 18 |
# File 'lib/schmobile/request_extension.rb', line 16 def is_device?(identifier) !!(user_agent =~ /#{identifier}/i) end |