Commit d9f4c4d5 by liyijie

fix: Common使用columns

parent ebcad94c
...@@ -7,7 +7,7 @@ module TalltyImportExport ...@@ -7,7 +7,7 @@ module TalltyImportExport
module ClassMethods module ClassMethods
def model_headers(**args) def model_headers(**args)
klass.columns.map do |column| columns.map do |column|
{ {
key: column.name, key: column.name,
name: column.comment || column.name, name: column.comment || column.name,
......
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