browser: Some methods are not working
Description
I’m using the gem with Rails integration and some methods are not working with this recent upgrade (2.0.1).
How to reproduce
- browser.device.mobile?
- browser.platform.ios?
What do you expect
- true/false
- true/false
What happened instead
- undefined method `device’ for #Browser:0x007fb232327b20
- undefined method `ios?’ for :mac:Symbol
Software:
- Rails version: 4.2.5.1
- Browser gem version: 2.0.1
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (8 by maintainers)
@jengweneg Looks like you upgraded to v2. Change all calls from
browser.mobile?tobrowser.device.mobile?.