module ActiveAdminCsvWithBom
Constants
- VERSION
Public Class Methods
build(collection)
click to toggle source
NOTE: For resource of NOT Active Record
# File lib/active_admin_csv_with_bom.rb, line 7 def self.build(collection) Builder.new(collection).build end
csv_options()
click to toggle source
# File lib/active_admin_csv_with_bom.rb, line 11 def self.csv_options @_csv_options ||= { byte_order_mark: "\xFF\xFE".force_encoding("UTF-16LE").freeze, encoding: "UTF-16LE", encoding_options: "UTF-8", col_sep: "\t", row_sep: "\r\n", force_quotes: true } end