From d3a92517a48696d473fdd4db0da1999a6ba51623 Mon Sep 17 00:00:00 2001 From: Tobias Bühlmann Date: Thu, 6 May 2010 21:48:14 +0200 Subject: constantly using Pathname.new --- file_upload.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file_upload.rb') 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 -- cgit v1.2.3