Browse files

Patch DJ's monkey patch of YAML's monkey patch for Ruby 1.9.3

  • Loading branch information...
1 parent 324ce6e commit f8d3cf75f41026b33ee1766e8b9acbd3d89ddaa1 @guns committed Dec 27, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/delayed/yaml_ext.rb
View
2 lib/delayed/yaml_ext.rb
@@ -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

0 comments on commit f8d3cf7

Please sign in to comment.