lib/mongrel2/config/host.rb in mongrel2-0.1.2 vs lib/mongrel2/config/host.rb in mongrel2-0.2.0

- old
+ new

@@ -36,10 +36,10 @@ # These are route _arguments_, so they need to be declared in Host's scope rather # than Route's. ### Create a new Mongrel2::Config::Directory object for the specified +base+ and ### return it. - def directory( base, index_file, default_ctype='text/plain', opts={} ) + def directory( base, index_file='index.html', default_ctype='text/plain', opts={} ) opts.merge!( :base => base, :index_file => index_file, :default_ctype => default_ctype ) return Mongrel2::Config::Directory.create( opts ) end