No commit activity in last 3 years
No release in over 3 years
Browser compatibility definition
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

< 4.1, >= 3.1.12
 Project Readme

Rails::BrowserDetector

Identification of outdated browsers.

Installation

Add this line to your application's Gemfile:

gem 'rails-browser_detector'

Add congig/initializers/rails-browser_detector.rb and include BrowserCompatible into needed controllers:

::ApplicationController.send :include, ::Rails::BrowserDetector::BrowserCompatible

Rails.application.config.compatible_browsers = {
  'Chrome'         => 45,
  'Yandex Browser' => 13,
  'Opera'          => 32,
  'Firefox'        => 42,
  'IE'             => 10,
  'Safari'         => 8
}

Usage

Use controller/helper methods:

browser_old? #=> true

Contributing

  1. Fork it ( https://github.com/abak-press/rails-browser_detector/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request