From 7b81f00137fb4a9be98591006dbaa6e43727b3c3 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Mon, 26 Oct 2015 17:28:20 -0700 Subject: [PATCH] Defaults: compare paths in applies_path? as Strings to avoid confusion /cc #4064 --- lib/jekyll/frontmatter_defaults.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/frontmatter_defaults.rb b/lib/jekyll/frontmatter_defaults.rb index 160e6bec..d6cb173f 100644 --- a/lib/jekyll/frontmatter_defaults.rb +++ b/lib/jekyll/frontmatter_defaults.rb @@ -87,7 +87,7 @@ module Jekyll scope_path = Pathname.new(scope['path']) Pathname.new(sanitize_path(path)).ascend do |path| - if path == scope_path + if path.to_s == scope_path.to_s return true end end