aboutsummaryrefslogtreecommitdiffstats
path: root/lib/carlosgoce/layout
diff options
context:
space:
mode:
authorCarlos Goce <carlosgoce@gmail.com>2015-01-24 22:36:48 +0100
committerCarlos Goce <carlosgoce@gmail.com>2015-01-24 22:36:48 +0100
commit70f634dc12cbc6e9fde6c0bc8854da0ae704b906 (patch)
tree14c2fca7e19d73de8c4ec4deaf275251d1b26e5f /lib/carlosgoce/layout
parent47a55ef9ca277fcbce1ad1e908eb2110c2da57b4 (diff)
downloadpdf-calendars-70f634dc12cbc6e9fde6c0bc8854da0ae704b906.tar.gz
pdf-calendars-70f634dc12cbc6e9fde6c0bc8854da0ae704b906.tar.bz2
pdf-calendars-70f634dc12cbc6e9fde6c0bc8854da0ae704b906.zip
Improve data structure
Diffstat (limited to 'lib/carlosgoce/layout')
-rw-r--r--lib/carlosgoce/layout/layouts.rb3
1 files changed, 1 insertions, 2 deletions
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]]