lib/thinreports/report/internal.rb in thinreports-0.10.3 vs lib/thinreports/report/internal.rb in thinreports-0.11.0

- old
+ new

@@ -94,9 +94,11 @@ def finalize_current_page(options = {}) page.finalize(options) unless page.nil? || page.blank? end def init_layout(filename, id = nil) + filename = filename.to_path if filename.is_a?(Pathname) + Thinreports::Layout.new(filename, id: id) end end end end