lib/table_go.rb in table_go-0.2.0 vs lib/table_go.rb in table_go-0.2.1
- old
+ new
@@ -9,14 +9,14 @@
autoload :Formatter, 'table_go/formatter'
autoload :Helpers, 'table_go/helpers'
def self.render_html(collection, model_klass, template, options = {}, &block)
- render(collection, model_klass, TableGo::Renderers::HtmlRenderer, 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, TableGo::Renderers::CsvRenderer, nil, options, &block)
+ render(collection, model_klass, Renderers::CsvRenderer, nil, options, &block)
end
def self.render(collection, model_klass, renderer_klass, template, options = {}, &block)
table = Table.new(collection, model_klass, &block)
renderer = TableRenderer.new(table)
\ No newline at end of file