Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 68aebd489566ee514d86765c0d5dceb7feb7aacf 2 parents 0505239 + 26f8fb8
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/commands/runner.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.