aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/servers/webrick.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-11-09 22:15:01 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-11-09 22:15:01 +0000
commitc7e5c27b51154b3c3a164cf84f08425b2e00e1d8 (patch)
tree98544029ab9764b34a0565dd6621f92a1f5fc30e /railties/lib/commands/servers/webrick.rb
parent5879a2e9192dc9b6e1e17d2b6d14b26df96ff41b (diff)
downloadrails-c7e5c27b51154b3c3a164cf84f08425b2e00e1d8.tar.gz
rails-c7e5c27b51154b3c3a164cf84f08425b2e00e1d8.tar.bz2
rails-c7e5c27b51154b3c3a164cf84f08425b2e00e1d8.zip
Added automatic browser launching on OS X when starting script/server [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2960 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands/servers/webrick.rb')
-rw-r--r--railties/lib/commands/servers/webrick.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/commands/servers/webrick.rb b/railties/lib/commands/servers/webrick.rb
index db8e8b3d93..d06e3309bd 100644
--- a/railties/lib/commands/servers/webrick.rb
+++ b/railties/lib/commands/servers/webrick.rb
@@ -8,7 +8,8 @@ OPTIONS = {
:server_root => File.expand_path(RAILS_ROOT + "/public/"),
:server_type => WEBrick::SimpleServer,
:charset => "UTF-8",
- :mime_types => WEBrick::HTTPUtils::DefaultMimeTypes
+ :mime_types => WEBrick::HTTPUtils::DefaultMimeTypes,
+ :open_in_browser => true
}
ARGV.options do |opts|