Merge pull request #3860 from consul/remove_browser
Remove browser gem direct dependency
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -8,7 +8,6 @@ gem "ahoy_matey", "~> 1.6.0"
|
||||
gem "ancestry", "~> 3.0.7"
|
||||
gem "audited", "~> 4.9.0"
|
||||
gem "autoprefixer-rails", "~> 8.2.0"
|
||||
gem "browser", "~> 2.5.3"
|
||||
gem "cancancan", "~> 2.3.0"
|
||||
gem "ckeditor", "~> 4.3.0"
|
||||
gem "cocoon", "~> 1.2.9"
|
||||
|
||||
@@ -586,7 +586,6 @@ DEPENDENCIES
|
||||
ancestry (~> 3.0.7)
|
||||
audited (~> 4.9.0)
|
||||
autoprefixer-rails (~> 8.2.0)
|
||||
browser (~> 2.5.3)
|
||||
bullet (~> 5.7.0)
|
||||
byebug (~> 10.0.0)
|
||||
cancancan (~> 2.3.0)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<div class="wrapper <%= yield (:wrapper_class) %>">
|
||||
<%= render "layouts/header", with_subnavigation: true %>
|
||||
|
||||
<% if browser.ie? && cookies["ie_alert_closed"] != "true" %>
|
||||
<% if request.headers["User-Agent"] =~ /MSIE/ && cookies["ie_alert_closed"] != "true" %>
|
||||
<!--[if lt IE 9]>
|
||||
<div data-alert class="callout primary ie-callout" data-closable>
|
||||
<button class="close-button ie-callout-close-js"
|
||||
|
||||
Reference in New Issue
Block a user