Skip to content

Commit

Permalink
Fix Set export in xls
Browse files Browse the repository at this point in the history
  • Loading branch information
warp committed Apr 12, 2012
1 parent edab475 commit 285ea73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fat_free_crm/core_ext/array.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def to_xls
else
item.send(column)
end
value = value.to_a if value.is_a?(Set)
value.to_s.wrap(%Q|<Cell><Data ss:Type="#{value.respond_to?(:abs) ? 'Number' : 'String'}">|, '</Data></Cell>')
end.join.wrap('<Row>', '</Row>')
end
Expand Down

0 comments on commit 285ea73

Please sign in to comment.