From 422a4bd5cdd4b1932c963600fe960d9ae3491113 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Fri, 26 Apr 2013 20:25:07 +0200 Subject: [PATCH] Renamed tag- and category-instantiation methods --- lib/jekyll/post.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index 46d64d3a..d62c8e51 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -47,8 +47,8 @@ module Jekyll self.published = self.is_published - self.setup_categories - self.setup_tags + self.populate_categories + self.populate_tags end def is_published @@ -59,14 +59,14 @@ module Jekyll end end - def setup_categories + def populate_categories if self.categories.empty? self.categories = self.data.pluralized_array('category', 'categories').map {|c| c.downcase} end self.categories.flatten! end - def setup_tags + def populate_tags self.tags = self.data.pluralized_array("tag", "tags") self.tags.flatten! end