Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tallty_import_export
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
tallty_import_export
Commits
db15a199
Commit
db15a199
authored
May 23, 2021
by
liyijie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export_headers & import_headers with **args
parent
a15330cd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
+3
-3
export.rb
lib/tallty_import_export/export.rb
+1
-1
import.rb
lib/tallty_import_export/import.rb
+1
-1
version.rb
lib/tallty_import_export/version.rb
+1
-1
tallty_import_export-1.0.3.gem
tallty_import_export-1.0.3.gem
+0
-0
No files found.
lib/tallty_import_export/export.rb
View file @
db15a199
...
@@ -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
...
...
lib/tallty_import_export/import.rb
View file @
db15a199
...
@@ -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
...
...
lib/tallty_import_export/version.rb
View file @
db15a199
module
TalltyImportExport
module
TalltyImportExport
VERSION
=
"1.0.
3
"
VERSION
=
"1.0.
4
"
end
end
tallty_import_export-1.0.3.gem
0 → 100644
View file @
db15a199
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment