From 6f8b94685cd7aa61b92b0b329074ef6ddd03533d Mon Sep 17 00:00:00 2001 From: Gleb Pomykalov Date: Tue, 15 Nov 2011 17:45:15 +0400 Subject: [PATCH] Fix issue with configatron broken on JRuby with 1.9 model. 2nd attempt --- lib/configatron/store.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/configatron/store.rb b/lib/configatron/store.rb index 49927ae..cc4a733 100644 --- a/lib/configatron/store.rb +++ b/lib/configatron/store.rb @@ -1,8 +1,8 @@ class Configatron class Store - if RUBY_VERSION.match(/^1\.9\.[^1]/) && RUBY_PLATFORM != 'java' + if RUBY_VERSION.match(/^1\.9\.[^1]/) require 'syck' - ::YAML::ENGINE.yamler = 'syck' + ::YAML::ENGINE.yamler = 'syck' unless RUBY_PLATFORM == 'java' end alias_method :send!, :send