Permalink
Browse files

load the file rather than evaling

  • Loading branch information...
1 parent 7098d6c commit bc8eaf0f5b90d0af5fa996649a5133953dd45086 @tenderlove tenderlove committed Jun 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/commands/runner.rb
View
2 railties/lib/rails/commands/runner.rb
@@ -48,7 +48,7 @@
exit 1
elsif File.exist?(code_or_file)
$0 = code_or_file
- eval(File.read(code_or_file), nil, code_or_file)
+ Kernel.load code_or_file
else
eval(code_or_file)
end

0 comments on commit bc8eaf0

Please sign in to comment.