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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c153e97f7f3678a5f424144b27e439d317dfd7dc3b35b4b763b7311f9e85040b
|
4
|
+
data.tar.gz: 4481c08660af65085ac925e07de371c83db4d545a17e76a39f11fdea1218a4eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 %>
|
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.
|
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-
|
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
|