Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Guard against attempting YAML::ENGINE.yamler = "syck" in older rubies.
  • Loading branch information
pda authored and guns committed Feb 2, 2012
1 parent 4007069 commit 823fb2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/yaml_ext.rb
Expand Up @@ -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"
Expand Down

0 comments on commit 823fb2e

Please sign in to comment.