active_admin_simple_import 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e68f792ac78f1d388b250c82e11d70309f20a70
4
- data.tar.gz: 43b953edab53f3ae3ffc6686bdd4ca9d50b9bc51
3
+ metadata.gz: b4ae3dfaf0c3f4528a04ced9f6cbee24a113abcf
4
+ data.tar.gz: 3b09387d7998109eae0ad916bc9a1f123156d62c
5
5
  SHA512:
6
- metadata.gz: 8c849caa2fbbd7a17b9e770c2ecdf274e0395a90e96b918af5a4182be9288fa4dc79b18b31890629d271963545a41abd36fe8f73f6cdc1dabeeb777ecf98f21b
7
- data.tar.gz: 1af1916aedacba3ed6e9f04d6cdb48ee9079fc2b982ccf02c9e3260168515d6df541ff3205e3a71f851588108d8e45f541b9a5cc79173561a2b440777835c44d
6
+ metadata.gz: 5d22d3c1e25000597b0cd8d6d045333b6b4399e2bd55d682ae5a1b224cfe823b6d90aa078a4d775a1eef05675fea4d57f627dcf78f8b25b4e1d02c969056b0a1
7
+ data.tar.gz: fe9481f00a334bb98241f46a7a7193de78e2b3d9b8eff26c5a7f4f30dea37a884d5c8c900fd4e8659a471fba6e7fb83ed6a03861082f974ffc5d61cc313114e8
@@ -2,6 +2,6 @@
2
2
  = semantic_form_for :csv, url: {action: :do_import}, html: {multipart: true} do |f|
3
3
  = f.inputs name: t('active_admin_simple_import.import') do
4
4
  = f.input :file, as: :file, label: t('active_admin_simple_import.file_label')
5
- = f.input :redirect_to, as: :hidden, input_html: { value: request.fullpath }
5
+ = f.input :redirect_to, as: :hidden, input_html: { value: params[:redirect_to] }
6
6
  = f.actions do
7
7
  = f.action :submit, label: t("active_admin_simple_import.import_button")
@@ -21,6 +21,10 @@ module ActiveAdminSimpleImport
21
21
  end
22
22
  redirect_to params[:csv][:redirect_to], notice: t('active_admin_simple_import.import_success', count: objects.count)
23
23
  end
24
+
25
+ action_item :import, only: :index do
26
+ link_to I18n.t("active_admin_simple_import.import_button") << " #{controller_name.singularize.camelize}", action: :import, redirect_to: request.full_path
27
+ end
24
28
  end
25
29
  end
26
30
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminSimpleImport
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_simple_import
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damian Romanów