We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1abaed2 commit e076ec2Copy full SHA for e076ec2
lib/active_admin_import/importer.rb
@@ -87,7 +87,7 @@ def process_file
87
def prepare_headers
88
headers = self.headers.present? ? self.headers : yield
89
@headers = Hash[headers.zip(headers.map { |el| el.underscore.gsub(/\s+/, '_') })].with_indifferent_access
90
- @headers.merge!(options[:headers_rewrites])
+ @headers.merge!(options[:headers_rewrites].symbolize_keys.slice(*@headers.symbolize_keys.keys))
91
@headers
92
end
93
0 commit comments