imp_exp 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/imp_exp/importers/base.rb +1 -3
- data/app/services/imp_exp/models/base.rb +2 -0
- data/lib/imp_exp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95c01a0e842b07be48cdb4ba9d3c8c86b290be303ac295ae7e3bed32c25890b6
|
4
|
+
data.tar.gz: dfaeeb8bd81df45530ce3fffea3d836c8d443fda8c82cf6f959bd02794c6f27d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b916927e79f41a5f39f59d55355f4e60fdb13442584eb6192dae9deaf23d4349ef32c9b448f7d5deb056c060b65b8fec083a0bcc45e167d0119c67e1bde71e93
|
7
|
+
data.tar.gz: 7783e50180c86bc6d9bff432e472b2426c480e6bdfc47307a0c1496a5af1fd5aa4ab223128078767eb38c6d9f2b1623da9bfdc2bc7f3d6e6aae2339ec6538997
|
@@ -76,7 +76,7 @@ module ImpExp
|
|
76
76
|
attach_files(record, files_directory_path, model, row, line) if files_directory_path.present?
|
77
77
|
|
78
78
|
if record.save(context: :import)
|
79
|
-
after_save(record)
|
79
|
+
model.after_save(record)
|
80
80
|
@imported[model.model_name] += 1
|
81
81
|
next
|
82
82
|
end
|
@@ -87,8 +87,6 @@ module ImpExp
|
|
87
87
|
|
88
88
|
private
|
89
89
|
|
90
|
-
def after_save(_record); end
|
91
|
-
|
92
90
|
def raise_rescued_standard_error?
|
93
91
|
Rails.env.test? || Rails.env.development?
|
94
92
|
end
|
data/lib/imp_exp/version.rb
CHANGED