removing extra '.'

This commit is contained in:
Lucas Souza 2011-07-05 17:50:41 -03:00
parent 6bdd6a5b20
commit 197d9af49f
1 changed files with 2 additions and 2 deletions

View File

@ -76,8 +76,8 @@ module Sinatra
def source_path(source, options)
return source if source =~ /^\//
extension = options[:extension] ? ".#{options[:extension]}" : ""
"/#{options[:folder]}/#{source}.#{extension}"
file_extension = options[:extension] ? ".#{options[:extension]}" : ""
options[:folder] + "/" + source + file_extension
end
def source_url(source)