lib/tableficate/column.rb in tableficate-0.1.1 vs lib/tableficate/column.rb in tableficate-0.1.2

- old
+ new

@@ -11,10 +11,12 @@ @header = @options.delete(:header) || name.to_s.titleize end def value(row) if @block - @block.call(row).html_safe + output = @block.call(row) + output = output.html_safe if respond_to? :html_safe + output else row.send(@name) end end