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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7f2b63cfa24b1f1d1b210c163843a6fda15a4eee82fd8f875e3944f438bb0ec
4
- data.tar.gz: d42e8694afc0653e5c9f9a7a4e9345bb1375e515a4c97b28100b8109f7aa78d4
3
+ metadata.gz: 95c01a0e842b07be48cdb4ba9d3c8c86b290be303ac295ae7e3bed32c25890b6
4
+ data.tar.gz: dfaeeb8bd81df45530ce3fffea3d836c8d443fda8c82cf6f959bd02794c6f27d
5
5
  SHA512:
6
- metadata.gz: 05ad19e47c62b9fa6b0cf2a2522215c4e6bed74955c243788ef2745e4f97809db4fb3f89c8b75c6dd8dd5b8f8331a77676c38899ad1e4c8b5d5b314b852b7482
7
- data.tar.gz: cc8de48c25302a940800a8095c9ce03f2eb913e2d7ee0a9782828c9927d9ffbbb9c37a2b8d973b60e0ccc910ff24a34c784b4aa4f34e33b4e4306a37cc7e625d
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
@@ -136,6 +136,8 @@ module ImpExp
136
136
  "#{active_storage_file.name}-#{active_storage_file.record.code}#{file_extension(active_storage_file)}"
137
137
  end
138
138
 
139
+ def after_save(_record); end
140
+
139
141
  private
140
142
 
141
143
  def file_extension(active_storage_file)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ImpExp
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imp_exp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dev team Nerya