Skip to content

Commit

Permalink
Patch DJ's monkey patch of YAML's monkey patch for Ruby 1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
guns committed Dec 27, 2011
1 parent 324ce6e commit f8d3cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/yaml_ext.rb
Expand Up @@ -27,7 +27,7 @@ def yaml_tag_read_class(name)

class Class
yaml_as "tag:ruby.yaml.org,2002:class"
remove_method :to_yaml # use Module's to_yaml
remove_method :to_yaml if respond_to? :to_yaml and method(:to_yaml).owner == self # use Module's to_yaml
end

class Struct
Expand Down

0 comments on commit f8d3cf7

Please sign in to comment.