From 77b432f7914736f4c8507693563790e5cae0aa7a Mon Sep 17 00:00:00 2001 From: Carlos Goce Date: Fri, 23 Jan 2015 20:22:49 +0100 Subject: Improve generate method --- lib/carlosgoce/calendar.rb | 2 +- lib/carlosgoce/layouts.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/carlosgoce/calendar.rb b/lib/carlosgoce/calendar.rb index 370ada6..429cc0e 100644 --- a/lib/carlosgoce/calendar.rb +++ b/lib/carlosgoce/calendar.rb @@ -31,7 +31,7 @@ module CarlosGoce end def generate(layout, file) - layout.create file + layout.create file, to_h end end end diff --git a/lib/carlosgoce/layouts.rb b/lib/carlosgoce/layouts.rb index 65d5ad1..962f8cb 100644 --- a/lib/carlosgoce/layouts.rb +++ b/lib/carlosgoce/layouts.rb @@ -1,6 +1,6 @@ module CarlosGoce class Layout - def create(file) + def create(file, hash) end end -- cgit v1.2.3