No need to wrap app_file detection code in a lambda anymore

This commit is contained in:
Simon Rozet 2009-03-11 19:57:08 -07:00 committed by Ryan Tomayko
parent 271a421b98
commit ce2c889f41
1 changed files with 1 additions and 1 deletions

View File

@ -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 }