mongoid_delorean 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/lib/mongoid/delorean/trackable.rb +2 -1
- data/lib/mongoid/delorean/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mongoid_delorean (1.
|
4
|
+
mongoid_delorean (1.1.1)
|
5
5
|
mongoid (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -13,7 +13,7 @@ GEM
|
|
13
13
|
activesupport (3.2.8)
|
14
14
|
i18n (~> 0.6)
|
15
15
|
multi_json (~> 1.0)
|
16
|
-
builder (3.0.
|
16
|
+
builder (3.0.3)
|
17
17
|
database_cleaner (0.8.0)
|
18
18
|
diff-lcs (1.1.3)
|
19
19
|
i18n (0.6.1)
|
@@ -25,7 +25,8 @@ module Mongoid
|
|
25
25
|
|
26
26
|
Mongoid::Delorean::History.create(original_class: self.class.name, original_class_id: self.id, version: _version, altered_attributes: _changes, full_attributes: _attributes).inspect
|
27
27
|
self.without_history_tracking do
|
28
|
-
self.
|
28
|
+
self.version = _version
|
29
|
+
self.save!
|
29
30
|
end
|
30
31
|
end
|
31
32
|
end
|