From ce2c889f41549ddea223ed976a60cac0efb6ee7e Mon Sep 17 00:00:00 2001 From: Simon Rozet Date: Wed, 11 Mar 2009 19:57:08 -0700 Subject: [PATCH] No need to wrap app_file detection code in a lambda anymore --- lib/sinatra/main.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sinatra/main.rb b/lib/sinatra/main.rb index 953fb5f9..579684cd 100644 --- a/lib/sinatra/main.rb +++ b/lib/sinatra/main.rb @@ -6,7 +6,7 @@ module Sinatra # we assume that the first file that requires 'sinatra' is the # app_file. all other path related options are calculated based # on this path by default. - set :app_file, lambda { caller_files.first || $0 }.call + set :app_file, caller_files.first || $0 set :run, Proc.new { $0 == app_file }