Class: Browser::Device

Inherits:
Object
  • Object
show all
Defined in:
lib/h2ocube_rails_helper.rb

Instance Method Summary collapse

Instance Method Details

#_detect_mobileObject



28
# File 'lib/h2ocube_rails_helper.rb', line 28

alias _detect_mobile detect_mobile?

#detect_mobile?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/h2ocube_rails_helper.rb', line 30

def detect_mobile?
  !ua.blank? && _detect_mobile
end