activeadmin_reorderable 0.2.0 → 0.2.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: 40ed33ae36cb82f27d5c1d3a63af91e6d57f384c2f3512a9fe9376ea7a36b69f
4
- data.tar.gz: 7a4c1ade7db39b0c48253cf20c9e46a1f9312ca06a4bbce50c94f1765a8a9845
3
+ metadata.gz: 24e42e395b381a8fa33bce9aa9e8fb26e337b3f67519d5a998e720c94dac7f7e
4
+ data.tar.gz: 90475575d7098a30e8dc43b8a3536dcd6b4a9f42cf2a696face953002d504c9c
5
5
  SHA512:
6
- metadata.gz: 8f989e1ccd43c828dcbc74c98a461b3e22a5b3bf0611133b57612dac39bf23c04b8555370f9743f822f98a9fe6af4113980fb56ac23072e3ff3c70b943b9b5c3
7
- data.tar.gz: 8f492dffaf1499099ef6dfce4e3f4e133b82bb94c31b8ff66fe9e5362795ef6825cbea4a8155bd2b13439ff90346e70c740f653957460ac590e80c5ad500605f
6
+ metadata.gz: 399ec9fb0d7bd3217a40577e4ed3e3c980405cde55de5291db6a1d643c1881adcef7fcf33a9fc86cc47a234a50e7c3a9682ebd9ac805e39f84b431a35d5a832b
7
+ data.tar.gz: 5a29b1301e0e8477754ad4262aad074d58dd86770e0d9f167b396edf380c92f3e41e17cc33ca62d4e040f77538c55194ecfcd11877170da8e984b4e632e6df53
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  builds/*
2
2
  Gemfile.lock
3
3
  node_modules
4
+ *.gem
@@ -11,10 +11,8 @@ module ActiveAdmin
11
11
  private
12
12
 
13
13
  def reorder_handle_for(resource)
14
- aa_resource = active_admin_namespace.resource_for(resource.class)
15
- instance_name = aa_resource.resources_configuration[:self][:route_instance_name]
16
-
17
- url = send([:reorder, aa_resource.route_prefix, instance_name, :path].join('_'), resource)
14
+ aa_resource = active_admin_namespace.resource_for(resource.class)
15
+ url = aa_resource.route_member_action_path(:reorder, resource)
18
16
 
19
17
  span(reorder_handle_content, :class => 'reorder-handle', 'data-reorder-url' => url, 'data-reorder-id' => resource.id)
20
18
  end
@@ -28,4 +26,3 @@ module ActiveAdmin
28
26
  ::ActiveAdmin::Views::TableFor.send(:include, TableMethods)
29
27
  end
30
28
  end
31
-
@@ -1,3 +1,3 @@
1
1
  module ActiveadminReorderable
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "activeadmin_reorderable",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Drag and drop to reorder your ActiveAdmin tables.",
5
5
  "main": "app/assets/javascripts/activeadmin_reorderable.js",
6
6
  "files": [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_reorderable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Jones
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-03-09 00:00:00.000000000 Z
12
+ date: 2022-03-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activeadmin
@@ -38,7 +38,6 @@ files:
38
38
  - Gemfile
39
39
  - MIT-LICENSE
40
40
  - README.md
41
- - activeadmin_reorderable-0.1.5.gem
42
41
  - activeadmin_reorderable.gemspec
43
42
  - app/assets/javascripts/activeadmin_reorderable.js
44
43
  - app/assets/stylesheets/activeadmin_reorderable.scss
Binary file