active_admin_versioning 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a44bb3b38485cae88b9df2abe0d38a1f8f3f6312
|
|
4
|
+
data.tar.gz: a59b1323fc1339d8943e8596f19747a306c0ed08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
19
|
+
link_to [:versions, active_admin_namespace, resource_instance_name] do
|
|
18
20
|
::PaperTrail::Version.model_name.human
|
|
19
21
|
end
|
|
20
22
|
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.
|
|
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-
|
|
11
|
+
date: 2017-05-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activeadmin
|