1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #12970 from prathamesh-sonpatki/issue12885

Add positional information to eval call so that this information will be used in printing correct location where the exception occurred.

Closes #12885.
This commit is contained in:
Carlos Antonio da Silva 2013-11-21 04:10:16 -08:00
commit 68aebd4895

View file

@ -50,5 +50,5 @@ elsif File.exist?(code_or_file)
$0 = code_or_file $0 = code_or_file
Kernel.load code_or_file Kernel.load code_or_file
else else
eval(code_or_file) eval(code_or_file, binding, __FILE__, __LINE__)
end end