1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Modified path assembling to please bundling of gem for Google AppEngine.

This commit is contained in:
Jan Ulbrich 2009-08-04 09:05:52 +02:00 committed by Nathan Weizenbaum
parent 38362cbe5c
commit 91ca000580

View file

@ -15,7 +15,7 @@ module Haml
# @param file [String] The filename relative to the Haml root
# @return [String] The filename relative to the the working directory
def scope(file)
File.join(File.dirname(__FILE__), '..', '..', file)
File.join(File.dirname(File.dirname(File.dirname(__FILE__))), file)
end
# Converts an array of `[key, value]` pairs to a hash.