diff --git a/lib/haml/util.rb b/lib/haml/util.rb index 7ac1bbd6..56c4af50 100644 --- a/lib/haml/util.rb +++ b/lib/haml/util.rb @@ -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.