Permalink
Browse files

Guard against attempting YAML::ENGINE.yamler = "syck" in older rubies.

  • Loading branch information...
1 parent cbb4060 commit 05635776a7ac220b49f4c30457afa1d7eca43497 @pda pda committed with gaffneyc Feb 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/delayed/yaml_ext.rb
View
@@ -2,7 +2,7 @@
# Classes, Modules and Structs
require 'yaml'
-YAML::ENGINE.yamler = "syck"
+YAML::ENGINE.yamler = "syck" if defined?(YAML::ENGINE)
class Module
yaml_as "tag:ruby.yaml.org,2002:module"

0 comments on commit 0563577

Please sign in to comment.