mongoid-utils 0.1.10 → 0.1.11

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d7f2efb2526d57ea2959694fb4dbf42acad36d9
4
- data.tar.gz: c3eea88ff68d6300bccd74ac43afd2a156a9d557
3
+ metadata.gz: 8a20b84e38cda169d5b1cc6f6d48e8b5564b0101
4
+ data.tar.gz: 4e9ddbbee973b19d0205833ea940d9f7a50f245f
5
5
  SHA512:
6
- metadata.gz: 0207bcb95410df31d74e788a222965b2e5aa903ddc733883a5e7a0527c622c9f10aa34592933cfb0da02386d170afbf32554efdc15ce4820084bc6a2ea4f9cae
7
- data.tar.gz: 0b9c22f1afa124319f3613b99eb0453b712e0b2261fb2f1353731d3aeccaa4f81cea346115aff10d29455d1af1c61a67994ab506b1fed96c74c8fed9cdaad408
6
+ metadata.gz: 3c148643b5d854c958edc58f9bff680b5925f16fac7f06449907e026fd9e46e1462905f5c1468689a60b4f1779c561fab9f969168a76900c65ca292f544491e9
7
+ data.tar.gz: eea17775deceb94fedd1f61c1d093e3e16b5ffaff4da4d556874563728a9d21b29375fc58ffdfa72f25469ef9c2df8eaa3969e19056ec4c59854e685f30c8920
@@ -15,7 +15,9 @@ module Mongoid
15
15
 
16
16
  unless seen
17
17
  hits.create(digest: hit_digest)
18
- self.timeless.update_attribute(:hits_count, hits_count + 1)
18
+ self.hits_count = hits_count + 1
19
+ self.timeless.save
20
+ # self.timeless.update_attribute(:hits_count, hits_count + 1)
19
21
  end
20
22
  end
21
23
 
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Utils
3
- VERSION = "0.1.10"
3
+ VERSION = "0.1.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michail