Commit 3a1c3fe4 by liyijie

feat: export 优先选择的是hash key的方式

parent 3b53ec83
......@@ -204,7 +204,7 @@ module TalltyImportExport
end
def try_chain record, arr
arr.reduce(record) { |r, m| r.try(m) || r.try(:[], m) || r.try(:[], m.to_sym) }
arr.reduce(record) { |r, m| r.try(:[], m) || r.try(:[], m.to_sym) || r.try(m) }
end
def try_method record, method
......
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