Skip to content

Commit

Permalink
csv converter needs options to HashWithIndifferentAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
loicginoux committed Oct 13, 2016
1 parent 77edad9 commit ddb4a3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rails_admin/support/csv_converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def initialize(objects = [], schema = {})
end

def to_csv(options = {})
options = HashWithIndifferentAccess.new(options)
encoding_to = Encoding.find(options[:encoding_to]) if options[:encoding_to].present?

csv_string = generate_csv_string(options)
Expand Down

0 comments on commit ddb4a3c

Please sign in to comment.