From 302bc469143a49bbac7f85741bd2e329a522a752 Mon Sep 17 00:00:00 2001 From: Fabian Rodriguez Date: Thu, 27 Mar 2014 19:53:28 -0300 Subject: [PATCH] rename variable inside block --- lib/jekyll/site.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/site.rb b/lib/jekyll/site.rb index 5ff9442f..5e1877c7 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -275,7 +275,7 @@ module Jekyll def post_attr_hash(post_attr) # Build a hash map based on the specified post attribute ( post attr => # array of posts ) then sort each array in reverse order. - hash = Hash.new { |hash, key| hash[key] = [] } + hash = Hash.new { |h, key| h[key] = [] } posts.each { |p| p.send(post_attr.to_sym).each { |t| hash[t] << p } } hash.values.map { |sortme| sortme.sort! { |a, b| b <=> a } } hash