From 866935dadf75ca6d04fd3486381b2ddd7e96f79e Mon Sep 17 00:00:00 2001 From: James Smith Date: Sat, 16 Aug 2014 20:26:29 +0100 Subject: [PATCH] map with proc for CSV loading --- 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 3b5da452..e37829d2 100644 --- a/lib/jekyll/site.rb +++ b/lib/jekyll/site.rb @@ -226,7 +226,7 @@ module Jekyll else case File.extname(path).downcase when '.csv' - data[key] = CSV.read(path, headers: true).map{|x| x.to_hash} + data[key] = CSV.read(path, headers: true).map(&:to_hash) else data[key] = SafeYAML.load_file(path) end