lib/tableficate/helper.rb in tableficate-0.3.0 vs lib/tableficate/helper.rb in tableficate-0.3.1

- old
+ new

@@ -1,8 +1,8 @@ module Tableficate module Helper def table_for(rows, options = {}) - t = Tableficate::Table.new(self, rows, options, rows.tableficate_get_data) + t = Tableficate::Table.new(self, rows, options, rows.tableficate_data) yield(t) t.template.render(partial: Tableficate::Utils::template_path(t.template, 'table_for', t.theme), locals: {table: t}) end def tableficate_table_tag(table)