specstar-models 0.2.7 → 0.2.8

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: 3b7b8af0d565b35e6cd059cd52812b85e0af4030
4
- data.tar.gz: 45b95b264c0689627e7a0c67064c6af230637fcb
3
+ metadata.gz: f41a1f7f12720a9d0b82d36c428fdd9c93623aad
4
+ data.tar.gz: 3416740fccb336e41dddf9700184890f4f66c071
5
5
  SHA512:
6
- metadata.gz: ffc5066124cd339359d7e9f22e19ae600f887adcd1d73177a2c97f8bad2ae921f45ed5804a1ea1085493eb432f6bc8bf7e1680e593c1baf5f4f64ace37d6d476
7
- data.tar.gz: d86c835c2629e71cc1962ea8351c62fc98725d5fd0bebf5d9599b1496be5f8ded85e17e42e63b35a60fc9b92520228dba52e6649e90d40a4f602ddec3359aa36
6
+ metadata.gz: df2b6def7ebf9ec579b50b21499a1f42a4914414baf4c3237ef0d575be6e2b8404e70e4f39f7d36c1dc81ef873650d0080e8185764b5a895d267b535eebd85bd
7
+ data.tar.gz: 8375a1dd8e0e6c59cbeca540f9710c81267ca09f366cda63628315dc8b1c14c00a4c22c727d6cbe4b45245763e8e1808293b1f2093d59a62316ae0465f48ec21
@@ -92,7 +92,7 @@ module Specstar
92
92
  match do |model|
93
93
  (has_attribute?(model, attr) || has_association?(model, attr)) &&
94
94
  model._validators[attr].select do |validator|
95
- validator.instance_of?(ActiveRecord::Validations::InclusionValidator) && validator.options.merge(options) == validator.options
95
+ validator.instance_of?(ActiveModel::Validations::InclusionValidator) && validator.options.merge(options) == validator.options
96
96
  end.size > 0
97
97
  end
98
98
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specstar-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sujoy Gupta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-29 00:00:00.000000000 Z
11
+ date: 2015-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core