administrate_exportable 0.6.0 → 0.6.1

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: fa557cc7b155574793d9f32d080b372cf88ecb628b8171cbb2320edc37206db3
4
- data.tar.gz: d6f3687f4e44b26d314207eb756ed12fe2e8b7ada8fd551fc422353870d97445
3
+ metadata.gz: c153e97f7f3678a5f424144b27e439d317dfd7dc3b35b4b763b7311f9e85040b
4
+ data.tar.gz: 4481c08660af65085ac925e07de371c83db4d545a17e76a39f11fdea1218a4eb
5
5
  SHA512:
6
- metadata.gz: d398ee24e8cdb81149a09580204a748d479a8b20b3e209f4400f8622710c4a78eec4cfdaf69991d68308a94010cbc2553586ba34cb8a56ff62523620b378ac1a
7
- data.tar.gz: 95d63eb25e4fdbf017775c10643a9ad5732fa1c2dde6ccd7d201c458e99f52da977bde38c599cdae908a492b12a89b7d144c16ca425269d4574c81621a95411d
6
+ metadata.gz: 3d3b3306f68107196542c80bce17a06d107ebd3900daa6f48a65fb93bb47891eb299d0c272b7bcab6fc253751046f373fc6fe47f8d5c373e03df0aa54c39f8a0
7
+ data.tar.gz: 8f11708bc6fe6e362d59c3c193b0aacc1598a9b96986a1445565560e26e4ec16be0d8df790137862ea8b091ab2669c0d3a0be21e1a067b3ee966f268e8e8febe
data/README.md CHANGED
@@ -56,7 +56,7 @@ ATTRIBUTE_TYPES = {
56
56
 
57
57
  By default the gem adds the Export button to the view `views/admin/application/index.html.erb`. But if you have your own Administrate `index` views, you can add the link manually:
58
58
  ```ruby
59
- link_to('Export', [:export, namespace, page.resource_name.to_s.pluralize, sanitized_order_params(page, :id).to_h.merge(format: :csv)], class: 'button') if valid_action?(:export)
59
+ link_to('Export', [:export, namespace.to_sym, page.resource_name.to_s.pluralize.to_sym, sanitized_order_params(page, :id).to_h.merge(format: :csv)], class: 'button') if valid_action?(:export)
60
60
  ```
61
61
 
62
62
  Example:
@@ -69,15 +69,15 @@ Example:
69
69
  "administrate.actions.new_resource",
70
70
  name: page.resource_name.titleize.downcase
71
71
  ),
72
- [:new, namespace, page.resource_path],
72
+ [:new, namespace.to_sym, page.resource_path.to_sym],
73
73
  class: "button",
74
74
  ) if valid_action?(:new) && show_action?(:new, new_resource) %>
75
75
 
76
76
  <%= link_to(
77
77
  'Export',
78
- [:export, namespace, page.resource_name.to_s.pluralize, sanitized_order_params(page, :id).to_h.merge(format: :csv)],
78
+ [:export, namespace.to_sym, page.resource_name.to_s.pluralize.to_sym, sanitized_order_params(page, :id).to_h.merge(format: :csv)],
79
79
  class: 'button'
80
- ) if valid_action?(:export) %>
80
+ ) if valid_action?(:export) %>
81
81
  </div>
82
82
  ....
83
83
  ```
@@ -0,0 +1 @@
1
+ <%= paginate resources, param_name: AdministrateExportable::PAGE_PARAM %>
@@ -64,5 +64,5 @@ It renders the `_table` partial to display details about the resources.
64
64
  table_title: "page-title"
65
65
  ) %>
66
66
 
67
- <%= paginate resources, param_name: AdministrateExportable::PAGE_PARAM %>
67
+ <%= render("pagination", resources: resources) %>
68
68
  </section>
@@ -1,3 +1,3 @@
1
1
  module AdministrateExportable
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: administrate_exportable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jônatas Rancan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-05-11 00:00:00.000000000 Z
12
+ date: 2022-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -140,6 +140,7 @@ files:
140
140
  - README.md
141
141
  - Rakefile
142
142
  - administrate_exportable.gemspec
143
+ - app/views/admin/application/_pagination.html.erb
143
144
  - app/views/admin/application/index.html.erb
144
145
  - bin/console
145
146
  - bin/setup