cm-admin 0.8.0 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/jobs/file_import_processor_job.rb +2 -2
- data/lib/cm_admin/engine.rb +1 -0
- data/lib/cm_admin/version.rb +1 -1
- data/lib/cm_admin/view_helpers/field_display_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2780b742a110c19ffb2b34edccb2de176672532dcaa02859cb5aa6879c348d4f
|
4
|
+
data.tar.gz: bcb172023f05ab0ca8457b4363568e6c0868441a3a7532f1b34ae73fb79a3175
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb66380de78d2dacb2796fa26afa2326a257ab3f4fd502aadbc38a02f504bd146042a1527616f3191a8889416d48af555abfb8e9e76db7d6502acf108ac0ad48
|
7
|
+
data.tar.gz: 59b5bcccee416299cd8b8c2794d96a92f00ce6fd6313eac26f31e29262fc62ff17bebef421646ee90bbaf25a3d3cf589fc7a51960f799535c0b6d0fbf5242103
|
data/Gemfile.lock
CHANGED
@@ -3,8 +3,8 @@ class FileImportProcessorJob < ApplicationJob
|
|
3
3
|
|
4
4
|
def perform(file_import)
|
5
5
|
model = CmAdmin::Model.find_by({name: file_import.associated_model_name})
|
6
|
-
|
7
|
-
importer = model.importer.class_name.classify.constantize.new(
|
6
|
+
content = file_import.import_file.download
|
7
|
+
importer = model.importer.class_name.classify.constantize.new(content: content)
|
8
8
|
case model.importer.importer_type.to_s
|
9
9
|
when 'csv_importer'
|
10
10
|
run_csv_importer(importer, file_import)
|
data/lib/cm_admin/engine.rb
CHANGED
data/lib/cm_admin/version.rb
CHANGED
@@ -66,7 +66,7 @@ module CmAdmin
|
|
66
66
|
if ar_object.send(field.field_name).attached?
|
67
67
|
image_tag(ar_object.send(field.field_name).url, height: field.height, width: field.height)
|
68
68
|
else
|
69
|
-
image_tag('/
|
69
|
+
image_tag('https://cm-admin.s3.ap-south-1.amazonaws.com/gem_static_assets/image_not_available.png', height: 50, width: 50)
|
70
70
|
end
|
71
71
|
end
|
72
72
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cm-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sajinmp
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-10-
|
13
|
+
date: 2022-10-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: caxlsx_rails
|