mongoid-api-base 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/mongoid-api-base/concern.rb +1 -1
- data/lib/mongoid-api-base/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6e1fe180e92012e58e5e7bcd788d9752703fc97
|
4
|
+
data.tar.gz: 3a724057a28acdc4d6c4aef9bdd112b02497e9de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d96715abaf4cb3b37b3e284ba47a3b16f942cb1400d94e4aa18854fb7edf0b083f00e5ded09c85ff3e82b1d8c532d0c01e4f7d0b3facdc4a075ed56ffdb16c04
|
7
|
+
data.tar.gz: 0da62faf959b0b7523a4c8e3dab5479ef4a5aa0cefcf3cff5d4c9faaf0dafaf609926829a9b37524d0dccb29994cfc14be11ac232e3022258aa0c8796438c384
|
data/Gemfile.lock
CHANGED
@@ -84,7 +84,7 @@ module MongoidApiBase
|
|
84
84
|
def get_object_version(object)
|
85
85
|
version = params[:version]
|
86
86
|
if version && object.respond_to?(:undo, true)
|
87
|
-
object.undo(nil, from: version.to_i + 1, to:
|
87
|
+
object.undo(nil, from: version.to_i + 1, to: object.version)
|
88
88
|
object.version = version
|
89
89
|
end
|
90
90
|
object
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-api-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Kravets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|