OSDN Git Service

スマートフォン対応のコメントアウトを解除
authorYOSHIDA Hiroki <hyoshida@appirits.com>
Thu, 16 May 2013 02:59:42 +0000 (11:59 +0900)
committerYOSHIDA Hiroki <hyoshida@appirits.com>
Thu, 16 May 2013 03:00:47 +0000 (12:00 +0900)
config/environment.rb

index bf2e0f7..9faff2c 100644 (file)
@@ -82,6 +82,6 @@ class UnsupportedDeviceLinkRenderer < WillPaginate::LinkRenderer
   end  
 end
 
-#require 'lib/jpmobile/mobile/smartphone.rb'
-#carriers = Jpmobile::Mobile.carriers
-#Jpmobile::Mobile.carriers = carriers.push("Smartphone")
+require "#{RAILS_ROOT}/lib/jpmobile/mobile/smartphone.rb"
+carriers = Jpmobile::Mobile.carriers
+Jpmobile::Mobile.carriers = carriers.push("Smartphone")