active_admin_versioning 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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39f10e57332f28066ce493ca546d6ca9da6c167b
|
4
|
+
data.tar.gz: 57ce8e063641a9a0ea3b88d9b6c24cd4a2ee3bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd97dcf297f493247f18ea5afad3e687aea38e826d66259de5346c7b6d3709041cec22a57f5df141dedc94f7f9ebf0d9aeb97a7a8329af77b6d3621aa5f5570a
|
7
|
+
data.tar.gz: ecdfd7fe1f04e5dc59d991c2abdb161b6dfa512a8712fa42ab7f51e613059c63756d495a1d3954e6491d2379331c9df742045a34574465f6c5808226cad445c6
|
@@ -9,7 +9,9 @@ module ActiveAdminVersioning
|
|
9
9
|
page = params[:page].to_i
|
10
10
|
@versions = resource.versions.reorder(id: :desc, created_at: :desc).page(params[:page]).per(1)
|
11
11
|
@version_number = page > 0 ? @versions.total_count - (page - 1) : @versions.total_count
|
12
|
-
|
12
|
+
if @versions.any? && @versions[0].next.present?
|
13
|
+
set_resource_ivar(@versions[0].next.reify)
|
14
|
+
end
|
13
15
|
show!
|
14
16
|
end
|
15
17
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoshiyuki Hirano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|