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: 33e2014ed28365718d8ce43cced3e3ca72b00fbf67bc3b040ae31613f6092020
4
- data.tar.gz: 871c01a9249f34872fcf3d6303be6e7f8c568b3a6991fcc6357abd0ac5ea5e09
3
+ metadata.gz: c071c302fc71fcb2222dc71df4c2a367eddd77c7f088db3be5842504145bfe5e
4
+ data.tar.gz: 8c425459777bdce2ad179056646034d5cc1257e9b5256cf29604128f54e23810
5
5
  SHA512:
6
- metadata.gz: 1c6c4f35005d9cc8fea9a29433f4ffca4a633152bc2c6763da7adaa149fcd1579be8477539763e5be2f50dde6fb5a7b13508b670b1b081635966804de29f0e83
7
- data.tar.gz: 2588222728d3bc595f3aeb536a5c309aa6f3322e0d1108efad78021fed8d1808b7db5fee2166736adaa845001babb8934f860f1f69a7707efa8f8c3fd85f58ef
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
@@ -1,3 +1,3 @@
1
1
  module AdministrateExportable
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
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.3.1
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-03-12 00:00:00.000000000 Z
12
+ date: 2021-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler