mongoid_delorean 1.1.0 → 1.1.1

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mongoid_delorean (1.0.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.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.update_attributes(version: _version)
28
+ self.version = _version
29
+ self.save!
29
30
  end
30
31
  end
31
32
  end
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Delorean
3
- VERSION = "1.1.0"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_delorean
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: