Browse files

call to_s on value to make sure it is a string. plataformatec/devise#…

  • Loading branch information...
1 parent 2bced7c commit 595ed2fcca1e35b152daa2265d614004d1099156 @mcr mcr committed Aug 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/psych/visitors/emitter.rb
View
2 lib/psych/visitors/emitter.rb
@@ -28,7 +28,7 @@ def visit_Psych_Nodes_Document o
end
def visit_Psych_Nodes_Scalar o
- @handler.scalar o.value, o.anchor, o.tag, o.plain, o.quoted, o.style
+ @handler.scalar o.value.to_s, o.anchor, o.tag, o.plain, o.quoted, o.style
end
def visit_Psych_Nodes_Sequence o

0 comments on commit 595ed2f

Please sign in to comment.