Permalink
Browse files

Proper lines numbers for stack trace info

  • Loading branch information...
1 parent 6dae0ab commit 12a7dc4d63e3979d6360843bcf4d393c6528382d @spastorino spastorino committed Sep 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/string/output_safety.rb
@@ -136,7 +136,7 @@ def to_yaml(*args)
end
for unsafe_method in UNSAFE_STRING_METHODS
- class_eval <<-EOT, __FILE__, __LINE__
+ class_eval <<-EOT, __FILE__, __LINE__ + 1
def #{unsafe_method}(*args)
super.to_str
end

0 comments on commit 12a7dc4

Please sign in to comment.