active_admin_versioning 0.2.2 → 0.2.3

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: 866084e70be46ebf80c76fb77129c4ee091511b8
4
- data.tar.gz: 8382bf35f0ea16e4d003a1741e1d86045c3b0326
3
+ metadata.gz: a44bb3b38485cae88b9df2abe0d38a1f8f3f6312
4
+ data.tar.gz: a59b1323fc1339d8943e8596f19747a306c0ed08
5
5
  SHA512:
6
- metadata.gz: 24cb97a76b65e607865ce95de0c1673be7e34e1d06d00068afe289e6f7d971a333f50e39ac8e358a8909949d6898ce05de8f13b4b16efa056807a7d97435976f
7
- data.tar.gz: 552da6fe168846802360c8e50ac40f7903d0d8c8618d2d84a5658b01825b55150a6fe18a185be8a7de6dc93e23ec62b6f31287269261bc5a3ed43b48a6510e16
6
+ metadata.gz: 25cd6255294df5e1d00d28579f4b504cfa8fb23f4265817d3bec99e258fe8bf298a20bb358db2a0a76b6a0bc0480cc106b517c7dc17acbdbb35da13de0ea3677
7
+ data.tar.gz: a5aa6552e56c43329333e671d8d6cb7c10f58c8a1c67f7f0eb8a076f2cbab8df297e4c3b983681bda9bf43014ccba0ec740e780938e3321b114277c98e038ec5
@@ -4,6 +4,8 @@ module ActiveAdminVersioning
4
4
  def versioning
5
5
  return unless enabled_paper_trail?
6
6
 
7
+ active_admin_namespace = config.namespace.name
8
+
7
9
  controller { include ActiveAdminVersioning::ActiveAdmin::ResourceController }
8
10
 
9
11
  member_action(:versions) do
@@ -14,7 +16,7 @@ module ActiveAdminVersioning
14
16
 
15
17
  with_options only: :show do
16
18
  action_item :version do
17
- link_to send("versions_admin_#{resource_instance_name}_path") do
19
+ link_to [:versions, active_admin_namespace, resource_instance_name] do
18
20
  ::PaperTrail::Version.model_name.human
19
21
  end
20
22
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminVersioning
2
- VERSION = "0.2.2".freeze
2
+ VERSION = "0.2.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_versioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshiyuki Hirano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-27 00:00:00.000000000 Z
11
+ date: 2017-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin