diff options
author | Francesco Coda Zabetta <francesco.codazabetta@gmail.com> | 2014-12-15 11:11:38 +0100 |
---|---|---|
committer | Francesco Coda Zabetta <francesco.codazabetta@gmail.com> | 2014-12-24 16:22:08 +0100 |
commit | 84b40a346a46ca75e7a8981999c6b74187328435 (patch) | |
tree | 67caa9f8f17ee1eb925f851c58290826c3ea8060 /app/helpers | |
parent | fe104386b16a73cbac1588aa5cce8319c6355ee9 (diff) | |
download | gitlab-ce-84b40a346a46ca75e7a8981999c6b74187328435.tar.gz |
check browser version, blacklisting outdated IE (version < 10)
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 90cc58f44b7..54caaa0f7e5 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -293,4 +293,8 @@ module ApplicationHelper path << "?#{options.to_param}" path end + + def outdated_browser? + browser.ie? && browser.version.to_i < 10 + end end |