administrate_exportable 0.3.1 → 0.4.0
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: c071c302fc71fcb2222dc71df4c2a367eddd77c7f088db3be5842504145bfe5e
|
4
|
+
data.tar.gz: 8c425459777bdce2ad179056646034d5cc1257e9b5256cf29604128f54e23810
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19d0f7d4b1a20e79cb0d69dbf2478ba83a0b55a3a2984368accfc8f021434fa223b564432aca5610a43cfa5dc92069ed512e2d2598de6e998cae923b5eb00f91
|
7
|
+
data.tar.gz: ffa9a448f90234a54c2a95df065fb9f80dbf6216d5f3a996146580bfbe22c305e1e0afc82a143936e93e101c2d9ff5e4608488aeb270d4cf89b2f2c29d0af0ca
|
@@ -42,7 +42,7 @@ It renders the `_table` partial to display details about the resources.
|
|
42
42
|
"administrate.actions.new_resource",
|
43
43
|
name: page.resource_name.titleize.downcase
|
44
44
|
),
|
45
|
-
[:new, namespace, page.resource_path],
|
45
|
+
[:new, namespace, page.resource_path.to_sym],
|
46
46
|
class: "button",
|
47
47
|
) if valid_action?(:new) && show_action?(:new, new_resource) %>
|
48
48
|
<%= link_to(
|
@@ -63,5 +63,5 @@ It renders the `_table` partial to display details about the resources.
|
|
63
63
|
table_title: "page-title"
|
64
64
|
) %>
|
65
65
|
|
66
|
-
<%= paginate resources %>
|
66
|
+
<%= paginate resources, param_name: AdministrateExportable::PAGE_PARAM %>
|
67
67
|
</section>
|
@@ -1,8 +1,11 @@
|
|
1
1
|
require "administrate_exportable/version"
|
2
2
|
require "administrate_exportable/exporter_service"
|
3
3
|
require "administrate_exportable/exporter"
|
4
|
+
require "administrate/version"
|
4
5
|
|
5
6
|
module AdministrateExportable
|
7
|
+
PAGE_PARAM = Gem::Version.create(Administrate::VERSION) >= Gem::Version.create('0.15.0') ? '_page' : 'page'
|
8
|
+
|
6
9
|
class Engine < ::Rails::Engine
|
7
10
|
end
|
8
11
|
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.
|
4
|
+
version: 0.4.0
|
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: 2021-
|
12
|
+
date: 2021-05-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|