Commit db15a199 by liyijie

export_headers & import_headers with **args

parent a15330cd
......@@ -138,7 +138,7 @@ module TalltyImportExport
@headers || export_headers
end
def export_headers
def export_headers **args
@headers || klass.try(:headers) || klass.try(:model_headers)
end
......
......@@ -100,7 +100,7 @@ module TalltyImportExport
@headers || import_headers
end
def import_headers
def import_headers **args
@headers || klass.try(:import_headers) || klass.try(:model_headers) || (raise ArgumentError.new('missing import_headers'))
end
......
module TalltyImportExport
VERSION = "1.0.3"
VERSION = "1.0.4"
end
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