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...
2 parents 0505239 + 26f8fb8 commit 68aebd489566ee514d86765c0d5dceb7feb7aacf @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
Kernel.load code_or_file
else
- eval(code_or_file)
+ eval(code_or_file, binding, __FILE__, __LINE__)
end

0 comments on commit 68aebd4

Please sign in to comment.