Commit db15a199 by liyijie

export_headers & import_headers with **args

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