lib/table_go.rb in table_go-0.2.4 vs lib/table_go.rb in table_go-0.2.5

- old
+ new

@@ -11,11 +11,11 @@ def self.render_html(collection, model_klass, template, options = {}, &block) render(collection, model_klass, Renderers::HtmlRenderer, template, options, &block) end - def self.render_csv(collection, model_klass, options = {}, &block) - render(collection, model_klass, Renderers::CsvRenderer, nil, options, &block) + def self.render_csv(collection, model_klass, template, options = {}, &block) + render(collection, model_klass, Renderers::CsvRenderer, template, options, &block) end def self.render(collection, model_klass, renderer_klass, template, options = {}, &block) table = Table.new(collection.respond_to?(:each) ? collection : [collection], model_klass, options, &block) renderer = TableRenderer.new(table) \ No newline at end of file