OSDN Git Service

YAMLのパースに失敗し例外が発生する不具合を修正
authorYOSHIDA Hiroki <hyoshida@appirits.com>
Fri, 31 May 2013 08:43:11 +0000 (17:43 +0900)
committerYOSHIDA Hiroki <hyoshida@appirits.com>
Fri, 31 May 2013 10:15:39 +0000 (19:15 +0900)
config/boot.rb
config/environment.rb

index 0fddc9f..8ec392c 100644 (file)
@@ -1,9 +1,6 @@
 # Don't change this file!
 # Configure your app in config/environment.rb and config/environments/*.rb
 
-require 'yaml'
-YAML::ENGINE.yamler = 'syck'
-
 RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
 
 module Rails
index 9faff2c..34e0fab 100644 (file)
@@ -85,3 +85,8 @@ end
 require "#{RAILS_ROOT}/lib/jpmobile/mobile/smartphone.rb"
 carriers = Jpmobile::Mobile.carriers
 Jpmobile::Mobile.carriers = carriers.push("Smartphone")
+
+# HACK: Ruby1.9のデフォルトパーサpsychだと各所が動かなくなるので
+#       古いsyckを使うようにする (quick and dirty)
+require 'yaml'
+YAML::ENGINE.yamler = 'syck'