Two updates I needed for my project.

- Ability to override the self.to_csv method to add fields as an array.

ex.

class MyModel
  include Mongoid::Document

  def self.to_csv
    documents_to_csv all, %w(name address1 location)
  end
end

- Supports embedded documents. That is, you can use keys with dots in them: (ex: 'rating.stars').
- Finally, removes the newline at the end of Mongoid values for fields that are Arrays.