removing extra '.'

This commit is contained in:
Lucas Souza 2011-07-05 17:50:41 -03:00
parent 6bdd6a5b20
commit 197d9af49f

View File

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