activeadmin_reorderable 0.1.0 → 0.1.2

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
  SHA1:
3
- metadata.gz: 3ba2baf266f9017eb5aa9b28092cbad248c30296
4
- data.tar.gz: aac13b30bd7e9ceac019916a2dca6b83493f1783
3
+ metadata.gz: 533fddb925c85604403ee6f2d3ad8e7f1f6aaa5d
4
+ data.tar.gz: f5f3b26bdb74b288c1bf5b48297cd32e88722cfe
5
5
  SHA512:
6
- metadata.gz: bc599627c63e489cc162f5e527e50fa209c0df5ce15af88c6c48c4f14e17cd83a126ec6c5bd37afca078ba137510f8d507e15a8f0ba879932ed65127df8b15bd
7
- data.tar.gz: 2b417e98afaaf8e867c17a6a4f06010020590470d76333c77e24a9b668127e122d5ba7e16e0efb97c3c73ff954d809a4690a5564b11fafd7ee0c3a06dbbc2485
6
+ metadata.gz: d3e21bdf88afedd86426072e55789d0bc153efd7ca7cb9588f37cf55b2b8db0c9d2c53560329d33b61ce54475d549364ff2fe91ffb0155374d481f90987d5ef8
7
+ data.tar.gz: 6a7ff481bdb0b4e1518137820cd344645962a4585364c7915e9005a4781354e4fb2a447474b403efe066a0cd3b58fa61b168e2538aeb6d6feeee4a0b987ed44c
@@ -11,7 +11,11 @@ module ActiveAdmin
11
11
  private
12
12
 
13
13
  def reorder_handle_for(resource)
14
- url = url_for([:reorder, active_admin_namespace.name, resource])
14
+ url = [
15
+ active_admin_namespace.resource_for(resource.class).route_instance_path(resource),
16
+ :reorder
17
+ ].join('/')
18
+
15
19
  span(reorder_handle_content, :class => 'reorder-handle', 'data-reorder-url' => url)
16
20
  end
17
21
 
@@ -1,3 +1,3 @@
1
1
  module ActiveadminReorderable
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  end
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.1.0
4
+ version: 0.1.2
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: 2017-10-19 00:00:00.000000000 Z
12
+ date: 2018-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activeadmin