aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-04-09 17:34:24 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-04-09 17:34:24 +0000
commitd699084f7a050b1aaffe81ce0be84d72e2530eb7 (patch)
treefd3d23e7d96efcc4d85d79f30216ba932b4cdb8d /railties
parent01c35c817528cc54c8c28f56786e92ff292e3c2a (diff)
downloadrails-d699084f7a050b1aaffe81ce0be84d72e2530eb7.tar.gz
rails-d699084f7a050b1aaffe81ce0be84d72e2530eb7.tar.bz2
rails-d699084f7a050b1aaffe81ce0be84d72e2530eb7.zip
script/console quotes RAILS_ROOT in irb command line so it works with spaces in the path. Closes #7955.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/commands/console.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/commands/console.rb b/railties/lib/commands/console.rb
index dab84c5de3..b83a33f9eb 100644
--- a/railties/lib/commands/console.rb
+++ b/railties/lib/commands/console.rb
@@ -10,7 +10,7 @@ OptionParser.new do |opt|
end
libs = " -r irb/completion"
-libs << " -r #{RAILS_ROOT}/config/environment"
+libs << %( -r "#{RAILS_ROOT}/config/environment")
libs << " -r console_app"
libs << " -r console_sandbox" if options[:sandbox]
libs << " -r console_with_helpers"