From 12a7dc4d63e3979d6360843bcf4d393c6528382d Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Fri, 16 Sep 2011 17:25:40 -0700 Subject: [PATCH] Proper lines numbers for stack trace info --- .../lib/active_support/core_ext/string/output_safety.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb index 430b2721ee557..d709caecdd9e4 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/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