Skip to content

Commit

Permalink
Fix issue with configatron broken on JRuby with 1.9 model. 2nd attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleb Pomykalov committed Nov 15, 2011
1 parent 2dc7c0b commit 6f8b946
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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
Expand Down

0 comments on commit 6f8b946

Please sign in to comment.