server_path: fix

This commit is contained in:
Denis Knauf 2013-01-21 14:09:09 +01:00
parent 404ff9d885
commit af9e6aebe5

View file

@ -137,8 +137,7 @@ module Ace
end end
def server_path def server_path
absolute = self.output_path.sub(/^output\//, "") absolute = self.output_path.sub(/^output\//, "").sub %r<(\.[^./]+)\.[^/]+$>, '\1'
absolute.sub! %r<(\.[^./])\.[^/]+$>, '\1'
"/#{absolute}" "/#{absolute}"
end end