From e973e59306d3880bfc9b392e75504e3fe6a7d5ba Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Fri, 26 Jul 2013 16:25:39 +0200 Subject: [PATCH] Remove redundant argument in Jekyll::Commands::New#scaffold_post_content --- lib/jekyll/commands/new.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/commands/new.rb b/lib/jekyll/commands/new.rb index 8757a91b..00b08c20 100644 --- a/lib/jekyll/commands/new.rb +++ b/lib/jekyll/commands/new.rb @@ -19,7 +19,7 @@ module Jekyll create_sample_files new_blog_path File.open(File.expand_path(self.initialized_post_name, new_blog_path), "w") do |f| - f.write(self.scaffold_post_content(site_template)) + f.write(self.scaffold_post_content) end end @@ -33,7 +33,7 @@ module Jekyll end end - def self.scaffold_post_content(template_site) + def self.scaffold_post_content ERB.new(File.read(File.expand_path(scaffold_path, site_template))).result end