Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
When using syck, return the class name for a Module rather than tryin…
…g to constantize a hash.
  • Loading branch information
bryckbost committed Sep 28, 2011
1 parent 7b8a79a commit e70b6ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/syck_ext.rb
Expand Up @@ -20,7 +20,7 @@ class Module
yaml_as "tag:ruby.yaml.org,2002:module"

def self.yaml_new(klass, tag, val)
val.constantize
klass
end

def to_yaml(options = {})
Expand Down

0 comments on commit e70b6ba

Please sign in to comment.