Permalink
Browse files

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.
  • Loading branch information...
1 parent 14ef77b commit 5da96e0af62abd6d6ba3dda2d5f1e1406b97ddf6 @carlosantoniodasilva carlosantoniodasilva committed Nov 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/commands/runner.rb
@@ -50,5 +50,5 @@
$0 = code_or_file
eval(File.read(code_or_file), nil, code_or_file)
else
- eval(code_or_file)
+ eval(code_or_file, binding, __FILE__, __LINE__)
end

0 comments on commit 5da96e0

Please sign in to comment.