app/views/fancygrid/table.html.haml in fancygrid-2.0.4 vs app/views/fancygrid/table.html.haml in fancygrid-2.0.5

- old
+ new

@@ -19,9 +19,9 @@ = text_field_tag(:value, column.search_value) - count = 1 - fancygrid.records.each do |record| - count = 1 - count - %tr.fg-row{ :class => fancygrid.tr_class(record) + " " + (count == 1 ? "odd" : "even"), :id => fancygrid.tr_id(record) } + %tr.fg-row{ :class => fancygrid.tr_class(record).to_s + " " + (count == 1 ? "odd" : "even"), :id => fancygrid.tr_id(record) } - fancygrid.visible_columns.each do |column| - %td{ :class => column.tag_class + " " + fancygrid.td_class(record).to_s, :id => fancygrid.td_id(record) } + %td{ :class => column.tag_class.to_s + " " + fancygrid.td_class(record).to_s, :id => fancygrid.td_id(record) } = render_fancygrid_cell(record, column, &format_block)