activeadmin-plugins / active_admin_import

:paperclip: active_admin_import is based on activerecord-import gem - the most efficient way to import for ActiveAdmin
http://activeadmin-plugins.github.io/active_admin_import
MIT License
184 stars 101 forks source link

Ruby 3.0 Support #189

Closed clinejj closed 3 years ago

clinejj commented 3 years ago

After updating to Ruby 3.0, there's an issue due to the changes around how arguments are passed that lead to invalid calls into CSV.parse on the following lines: https://github.com/activeadmin-plugins/active_admin_import/blob/v4.2.0/lib/active_admin_import/importer.rb#L40 https://github.com/activeadmin-plugins/active_admin_import/blob/v4.2.0/lib/active_admin_import/importer.rb#L118

Both of these should be updated to

**@csv_options