Commit ec6446d1 by liyijie

fix: with_indifferent_access! do not have this method

parent ffce6618
...@@ -165,7 +165,7 @@ module TalltyImportExport ...@@ -165,7 +165,7 @@ module TalltyImportExport
export_headers.select do |_header| export_headers.select do |_header|
_header.with_indifferent_access[:key].to_s.in?(headers_hash.keys) _header.with_indifferent_access[:key].to_s.in?(headers_hash.keys)
end.map do |_header| end.map do |_header|
_header.with_indifferent_access! _header = _header.with_indifferent_access
_header.merge(headers_hash[_header[:key]].delete_if { |k, v| v.blank? }) _header.merge(headers_hash[_header[:key]].delete_if { |k, v| v.blank? })
end end
else else
......
...@@ -140,7 +140,7 @@ module TalltyImportExport ...@@ -140,7 +140,7 @@ module TalltyImportExport
import_headers.select do |_header| import_headers.select do |_header|
_header.with_indifferent_access[:key].to_s.in?(headers_hash.keys) _header.with_indifferent_access[:key].to_s.in?(headers_hash.keys)
end.map do |_header| end.map do |_header|
_header.with_indifferent_access! _header = _header.with_indifferent_access
_header.merge(headers_hash[_header[:key]].delete_if { |k, v| v.blank? }) _header.merge(headers_hash[_header[:key]].delete_if { |k, v| v.blank? })
end end
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment