fnando / browser

Do some browser detection with Ruby. Includes ActionController integration.
MIT License
2.44k stars 358 forks source link

Browser is not a module #535

Closed waleedarshad closed 1 year ago

waleedarshad commented 1 year ago

Description

Browser is not a module gem 'rails', '~> 4.2.0'

How to reproduce

install gem and run rails s

Software:

fnando commented 1 year ago

You probably have a class called Browser being loaded somewhere in your project. You need to rename it to something else, as this gem defines a module Browser.

$ gem install browser -v 5.2.0
Fetching browser-5.2.0.gem
Successfully installed browser-5.2.0
1 gem installed

$ ruby -rbrowser/version -e 'puts Browser.class'
Module