From 10f8715bdebb8ba03b5ba63ae2e0dd80911a7d75 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Tue, 4 Mar 2014 22:43:10 -0800 Subject: [PATCH] Whoops, properly implement findup --- middleman-core/lib/middleman-core/load_paths.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core/load_paths.rb b/middleman-core/lib/middleman-core/load_paths.rb index d763b003..968e61ec 100644 --- a/middleman-core/lib/middleman-core/load_paths.rb +++ b/middleman-core/lib/middleman-core/load_paths.rb @@ -47,7 +47,7 @@ module Middleman def findup(filename, cwd = Pathname.new(Dir.pwd)) return cwd.to_s if (cwd + filename).exist? return false if cwd.root? - findup(cwd.parent) + findup(filename, cwd.parent) end end