diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-11-21 04:10:16 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-11-21 04:10:16 -0800 |
commit | 68aebd489566ee514d86765c0d5dceb7feb7aacf (patch) | |
tree | d500ec47e771f07bb6a7d58f6e74d8ee51a0d0fe /railties/lib/rails | |
parent | 05052390f2841de96a637478649a02961ac7a66d (diff) | |
parent | 26f8fb8641ee20fbda459755777acff93f3f5416 (diff) | |
download | rails-68aebd489566ee514d86765c0d5dceb7feb7aacf.tar.gz rails-68aebd489566ee514d86765c0d5dceb7feb7aacf.tar.bz2 rails-68aebd489566ee514d86765c0d5dceb7feb7aacf.zip |
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.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/commands/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/runner.rb b/railties/lib/rails/commands/runner.rb index 2b77d5d387..dd2ee5639e 100644 --- a/railties/lib/rails/commands/runner.rb +++ b/railties/lib/rails/commands/runner.rb @@ -50,5 +50,5 @@ elsif File.exist?(code_or_file) $0 = code_or_file Kernel.load code_or_file else - eval(code_or_file) + eval(code_or_file, binding, __FILE__, __LINE__) end |