lib/table_helper/body.rb in table_helper-0.0.3 vs lib/table_helper/body.rb in table_helper-0.0.4

- old
+ new

@@ -92,10 +92,10 @@ # The provided block should set the values for each cell in the row. def build_row(object, index = @collection.index(object), &block) row = BodyRow.new(object, @header) row.alternate = alternate_rows ? index.send("#{@alternate_rows}?") : false - yield row, object, index if block_given? + yield row.builder, object, index if block_given? row.html end def html #:nodoc: