diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-09-16 17:25:40 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-09-16 17:28:52 -0700 |
commit | 18116791d00d693643db3b4a99ae1d245c5a6c33 (patch) | |
tree | acbfdeb77f6b1069430e67d0c5f440cb95bebe15 /activesupport | |
parent | e314b3ff6d074ee0ea4c314e6ca1083469780449 (diff) | |
download | rails-18116791d00d693643db3b4a99ae1d245c5a6c33.tar.gz rails-18116791d00d693643db3b4a99ae1d245c5a6c33.tar.bz2 rails-18116791d00d693643db3b4a99ae1d245c5a6c33.zip |
Proper lines numbers for stack trace info
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/output_safety.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 05b39b89bf..3ae3d64fa4 100644 --- a/activesupport/lib/active_support/core_ext/string/output_safety.rb +++ b/activesupport/lib/active_support/core_ext/string/output_safety.rb @@ -142,7 +142,7 @@ module ActiveSupport #:nodoc: end UNSAFE_STRING_METHODS.each do |unsafe_method| - class_eval <<-EOT, __FILE__, __LINE__ + class_eval <<-EOT, __FILE__, __LINE__ + 1 def #{unsafe_method}(*args, &block) # def capitalize(*args, &block) to_str.#{unsafe_method}(*args, &block) # to_str.gsub(*args, &block) end # end |