aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/carlosgoce/layout/layouts.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/carlosgoce/layout/layouts.rb b/lib/carlosgoce/layout/layouts.rb
index 65da961..a841e4f 100644
--- a/lib/carlosgoce/layout/layouts.rb
+++ b/lib/carlosgoce/layout/layouts.rb
@@ -10,10 +10,10 @@ module CarlosGoce
Prawn::Document.generate(file) do
font_size = 16
- data.each do |k, month|
- days = data[k][:formatted_days]
- cells = (days).to_a.each_slice(7).to_a
- cells.unshift [data[k][:name]]
+ data[:months].each do |k, month|
+ days = month[:formatted_days]
+ cells = days.to_a.each_slice(7).to_a
+ cells.unshift [month[:name]]
tables << make_table(cells, cell_style: {align: :center, size: 7, border_width: 0})
end