font files were not correctly served with Locomotive running in single-site

This commit is contained in:
did 2011-05-27 08:25:40 -07:00
parent 164be33e06
commit 47ffafca20

View File

@ -10,7 +10,11 @@ module Locomotive
def call(env) def call(env)
if env["PATH_INFO"] =~ @path_regexp if env["PATH_INFO"] =~ @path_regexp
if Locomotive.config.multi_sites?
site = fetch_site(env['SERVER_NAME']) site = fetch_site(env['SERVER_NAME'])
else
site = Site.first
end
if site.nil? if site.nil?
@app.call(env) @app.call(env)