lib/table_cloth/presenters/default.rb in table_cloth-0.3.1.alpha1 vs lib/table_cloth/presenters/default.rb in table_cloth-0.3.2

- old
+ new

@@ -7,17 +7,17 @@ end end def render_rows wrapper_tag :tbody do - v.raw objects.inject('') {|r, object| r + render_row(object) } + v.raw objects.inject("") {|r, object| r + render_row(object) } end end def render_row(object) wrapper_tag :tr do - v.raw columns.inject('') {|tds, column| tds + render_td(column, object) } + v.raw columns.inject("") {|tds, column| tds + render_td(column, object) } end end def render_td(column, object) td_options = column.options[:td_options] || {} @@ -34,10 +34,10 @@ end def render_header wrapper_tag :thead do wrapper_tag :tr do - v.raw column_names.inject('') {|tags, name| tags + wrapper_tag(:th, name) } + v.raw column_names.inject("") {|tags, name| tags + wrapper_tag(:th, name) } end end end end end \ No newline at end of file