diff options
author | Tobias Bühlmann <tobias.buehlmann@gmx.de> | 2010-05-06 21:48:14 +0200 |
---|---|---|
committer | Tobias Bühlmann <tobias.buehlmann@gmx.de> | 2010-05-06 21:48:14 +0200 |
commit | d3a92517a48696d473fdd4db0da1999a6ba51623 (patch) | |
tree | 8b4a2546a9f6c2ba8a5f74af7b194a75a655c5ca | |
parent | d4ccdf736f536b420aceeb6cb8589495cd2e4a34 (diff) |
constantly using Pathname.new
-rw-r--r-- | file_upload.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/file_upload.rb b/file_upload.rb index b9a6d6d..aab6b4e 100644 --- a/file_upload.rb +++ b/file_upload.rb @@ -29,7 +29,7 @@ class FileUpload < Sinatra::Base end get '/' do - @files = settings.public.join('files').entries - [Pathname('.'), Pathname('..')] + @files = settings.public.join('files').entries - [Pathname.new('.'), Pathname.new('..')] @flash = session[:flash] session[:flash] = nil |