mongoid-multitenancy 0.4.1 → 0.4.2

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
  SHA1:
3
- metadata.gz: e0e3e8744c3c18e29194af6955cd8a2fba4562fd
4
- data.tar.gz: 6fdadff774736f91927770271e2a28f7e64dd38b
3
+ metadata.gz: e151c5f6685219fa3632b566d9f6b5da8af7d5eb
4
+ data.tar.gz: dff2b8a2e7751b2a46441d0f9fb1a3664e3056d9
5
5
  SHA512:
6
- metadata.gz: 3a8995b28ca405dddb5b9c45f2c505ffa89d6c40ac722137cd9e408310dc43a6ac8d659af3952fcae698b858a5a05c4708430d949b50ec30355f5040be05b7d1
7
- data.tar.gz: a9b3e25dd1dcbfb7969f2d0913e04e980db5d2dafc9c3f3dee50a7306505b0d9bab46a730de5f9b6ab5ef4a3461a3d8e556baa328a402eeef3d73a9b9726546d
6
+ metadata.gz: 9d82f6b364671ed9e87c3c5b301d10d34c0fdb2bf169e4c80a532fb001b6a0e75df91be8bb585452370eef9f8c3093902764799ca1a3dc02086b49ab14cc1a36
7
+ data.tar.gz: b8e2737fb53ad53d0a77b145b04e1f4bfec1310e47e7b20ca85ee23c93aab50cffd0b8892b6de5e1e0d1a8554fc44da62f93ca985cb5a4b50adaf713a3011db6
@@ -63,7 +63,7 @@ module Mongoid
63
63
  Validations::UniquenessValidator
64
64
  end
65
65
 
66
- if args.first == validator
66
+ if args.first.ancestors.include?(validator)
67
67
  args.last[:scope] = Array(args.last[:scope]) << self.tenant_field
68
68
  end
69
69
  super(*args, &block)
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Multitenancy
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-multitenancy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aymeric Brisse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-25 00:00:00.000000000 Z
11
+ date: 2014-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 2.2.1
86
+ rubygems_version: 2.2.2
87
87
  signing_key:
88
88
  specification_version: 4
89
89
  summary: Support of a multi-tenant database with Mongoid