diff options
Diffstat (limited to 'railties/lib/commands/runner.rb')
-rw-r--r-- | railties/lib/commands/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/commands/runner.rb b/railties/lib/commands/runner.rb index 49827c3812..27a2cf33d6 100644 --- a/railties/lib/commands/runner.rb +++ b/railties/lib/commands/runner.rb @@ -1,6 +1,6 @@ require 'optparse' -options = { :environment => "development" } +options = { :environment => (ENV['RAILS_ENV'] || "development").dup } ARGV.options do |opts| script_name = File.basename($0) |