Fix references to store in traversal

This commit is contained in:
Ben Hollis 2014-06-14 13:08:03 -07:00
parent f63feaf017
commit 2ef842a730

View file

@ -13,7 +13,7 @@ module Middleman
test_expr = parts.join('\\/')
# eponymous reverse-lookup
found = store.resources.find do |candidate|
found = @store.resources.find do |candidate|
candidate.path =~ %r!^#{test_expr}(?:\.[a-zA-Z0-9]+|\/)$!
end
@ -21,7 +21,7 @@ module Middleman
found
else
parts.pop if is_index
store.find_resource_by_destination_path("#{parts.join('/')}/#{@app.config[:index_file]}")
@store.find_resource_by_destination_path("#{parts.join('/')}/#{@app.config[:index_file]}")
end
end