Skip to content
This repository was archived by the owner on Dec 2, 2018. It is now read-only.

Commit 1ac6675

Browse files
committed
Default to current working directory
1 parent 67458ab commit 1ac6675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rack/legacy/index.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Rack::Legacy::Index
22

33
# Will rewrite the request if the request is for a directory and
44
# one of the index files specified exists.
5-
def initialize app, public_dir, order=['index.php', 'index.cgi', 'index.html']
5+
def initialize app, public_dir=Dir.getwd, order=['index.php', 'index.cgi', 'index.html']
66
@app = app
77
@public_dir = public_dir
88
@order = order

0 commit comments

Comments
 (0)