mongomodel 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 619c79fda7efe88d443078fcc4070ab954a942429b1710090b1bf094042c9b76
4
- data.tar.gz: b5c73c1d569db35d3da9c41d4984d24e63ca363c02ff0f389d38e30bafab6c90
3
+ metadata.gz: 0ff0669f46e16fe7f9fc558b74d1e54b3b81c05b2b5e6363ca16850d729fb75f
4
+ data.tar.gz: e74bfcabb98a9f1b3071395edd8f5061fc96dd8ccce486d648166cc83d356afb
5
5
  SHA512:
6
- metadata.gz: 6bef0fddd9ed4059e5f97ed98fd335299cc2f52d51b44973c9d8b7befb7e7c66abdd057065258d70d02d5f2a874eb2c1b4cab8ca59b31d5710a556aa7423f644
7
- data.tar.gz: 16b56dacd31e9b4335a049c00bf2eec21346827ef71be8393399f846ea66994ba441c30205c8f1de0267416bff34ff24878b9b29ec9ddcbb629efc9b23ed4d31
6
+ metadata.gz: 704cc3d3b5f9d87269cc599f98fba626f346535ddcbd6cc68e8cb4fceef6a87a06a4e47ed8f680cba8f870c0fb20847e2de84a94052d10ebca29499e8fc06afd
7
+ data.tar.gz: 818214cf7a6b135cece9543dc46f6b79af67aeccfa7b05f1897c1840499052ed57208023b0070b36b00613d31093716ccd6e5fb41e78842615f617eb59676b8e
@@ -82,7 +82,7 @@ module MongoModel
82
82
  def class_for_type(type)
83
83
  klass = type.constantize
84
84
 
85
- if klass.ancestors.include?(self)
85
+ if klass.ancestors.map(&:name).include?(name)
86
86
  klass
87
87
  else
88
88
  raise DocumentNotFound, "Document not of the correct type (got #{type})"
@@ -1,3 +1,3 @@
1
1
  module MongoModel
2
- VERSION = "0.5.6"
2
+ VERSION = "0.5.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongomodel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Pohlenz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-03 00:00:00.000000000 Z
11
+ date: 2018-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -317,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
317
317
  version: 1.3.6
318
318
  requirements: []
319
319
  rubyforge_project: mongomodel
320
- rubygems_version: 2.7.3
320
+ rubygems_version: 2.7.6
321
321
  signing_key:
322
322
  specification_version: 4
323
323
  summary: MongoDB ORM for Ruby/Rails