From 3e2ab58d56463fb0b93b996a1d5dc67c5f255199 Mon Sep 17 00:00:00 2001 From: Anatol Broder Date: Tue, 17 Sep 2013 20:34:04 +0200 Subject: [PATCH] Fix unruby paradigm --- lib/jekyll/tags/include.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/tags/include.rb b/lib/jekyll/tags/include.rb index 89aad0ea..636b2436 100644 --- a/lib/jekyll/tags/include.rb +++ b/lib/jekyll/tags/include.rb @@ -92,7 +92,7 @@ eos end def validate_dir(dir, safe) - if File.symlink?(dir) && safe? + if File.symlink?(dir) && safe return "Includes directory '#{dir}' cannot be a symlink" end end @@ -100,7 +100,7 @@ eos def validate_file(file, safe) if !File.exists?(file) return "Included file '#{@file}' not found in '#{INCLUDES_DIR}' directory" - elsif File.symlink?(file) && safe? + elsif File.symlink?(file) && safe return "The included file '#{INCLUDES_DIR}/#{@file}' should not be a symlink" end end