From 70f634dc12cbc6e9fde6c0bc8854da0ae704b906 Mon Sep 17 00:00:00 2001 From: Carlos Goce Date: Sat, 24 Jan 2015 22:36:48 +0100 Subject: Improve data structure --- lib/carlosgoce/layout/layouts.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/carlosgoce/layout') diff --git a/lib/carlosgoce/layout/layouts.rb b/lib/carlosgoce/layout/layouts.rb index 2382573..65da961 100644 --- a/lib/carlosgoce/layout/layouts.rb +++ b/lib/carlosgoce/layout/layouts.rb @@ -7,12 +7,11 @@ module CarlosGoce class Simple def create (file, data, year) tables = [] - Prawn::Document.generate(file) do font_size = 16 data.each do |k, month| - days = data[k][:days] + days = data[k][:formatted_days] cells = (days).to_a.each_slice(7).to_a cells.unshift [data[k][:name]] -- cgit v1.2.3