mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
[Haml] Don't use File.expand_path in Util.scope.
This dies when there are symbolic links involved.
This commit is contained in:
parent
f209a01e93
commit
bd7f81dd23
1 changed files with 1 additions and 1 deletions
|
@ -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.expand_path File.join(File.dirname(__FILE__), '..', '..', file)
|
||||
File.join(File.dirname(__FILE__), '..', '..', file)
|
||||
end
|
||||
|
||||
# Converts an array of `[key, value]` pairs to a hash.
|
||||
|
|
Loading…
Add table
Reference in a new issue