From a3f3b086f3d35af1724b2031c3a36984393c82e4 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Thu, 5 Sep 2013 16:28:57 -0400 Subject: [PATCH] Don't show mobile view unless mobile_view=1 param is used. Still more work to do. --- app/helpers/application_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 72e654e48f6..07eaa91ca48 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -114,6 +114,8 @@ module ApplicationHelper end def mobile_device? - request.user_agent =~ /Mobile|webOS/ + # For now, don't show mobile view unless you put ?mobile_view=1 in the URL. + # request.user_agent =~ /Mobile|webOS/ + false end end