riot-mongoid 2.0.0.beta → 2.0.0.beta.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ module RiotMongoid
6
6
  validation_type, validation_field, options = validation_macro_info
7
7
  type = validation_type.to_s
8
8
  %w{validates_ _of}.each { |part| type.gsub!(%r{#{part}},'') }
9
- validation = model.validators_on(validation_field).detect do |valid|
9
+ validation = model._validators[validation_field].detect do |valid|
10
10
  valid.class.name =~ %r{#{type.capitalize}}
11
11
  end
12
12
  options ||= {}
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{riot-mongoid}
3
- s.version = "2.0.0.beta"
3
+ s.version = "2.0.0.beta.2"
4
4
  s.required_rubygems_version = ">= 1.3.6"
5
5
  s.authors = ["gabrielg", "Arthur Chiu"]
6
6
  s.date = Time.now.strftime("%Y-%m-%d")
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riot-mongoid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31098209
4
+ hash: 62196455
5
5
  prerelease: true
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
9
  - 0
10
10
  - beta
11
- version: 2.0.0.beta
11
+ - 2
12
+ version: 2.0.0.beta.2
12
13
  platform: ruby
13
14
  authors:
14
15
  - gabrielg
@@ -17,7 +18,7 @@ autorequire:
17
18
  bindir: bin
18
19
  cert_chain: []
19
20
 
20
- date: 2010-08-29 00:00:00 -07:00
21
+ date: 2010-09-01 00:00:00 -07:00
21
22
  default_executable:
22
23
  dependencies:
23
24
  - !ruby/object:Gem::Dependency