aboutsummaryrefslogtreecommitdiffstats
path: root/lib/carlosgoce/layout
diff options
context:
space:
mode:
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]]