mongo_mapper_versioned 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,7 @@ module MongoMapper
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def revert_to(target_version_number)
|
32
|
+
return if self.version_number == target_version_number
|
32
33
|
if target_version = version_at(target_version_number)
|
33
34
|
self.attributes = target_version.data
|
34
35
|
self.version_number = target_version.version_number
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_mapper_versioned
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tomas Celizna
|