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 +4 -4
- data/.gitignore +1 -0
- data/lib/active_admin/reorderable/table_methods.rb +2 -5
- data/lib/activeadmin_reorderable/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -3
- data/activeadmin_reorderable-0.1.5.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24e42e395b381a8fa33bce9aa9e8fb26e337b3f67519d5a998e720c94dac7f7e
|
4
|
+
data.tar.gz: 90475575d7098a30e8dc43b8a3536dcd6b4a9f42cf2a696face953002d504c9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 399ec9fb0d7bd3217a40577e4ed3e3c980405cde55de5291db6a1d643c1881adcef7fcf33a9fc86cc47a234a50e7c3a9682ebd9ac805e39f84b431a35d5a832b
|
7
|
+
data.tar.gz: 5a29b1301e0e8477754ad4262aad074d58dd86770e0d9f167b396edf380c92f3e41e17cc33ca62d4e040f77538c55194ecfcd11877170da8e984b4e632e6df53
|
data/.gitignore
CHANGED
@@ -11,10 +11,8 @@ module ActiveAdmin
|
|
11
11
|
private
|
12
12
|
|
13
13
|
def reorder_handle_for(resource)
|
14
|
-
aa_resource
|
15
|
-
|
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
|
-
|
data/package.json
CHANGED
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.
|
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-
|
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
|