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.
- data/lib/riot-mongoid/has_validation.rb +1 -1
- data/riot-mongoid.gemspec +1 -1
- metadata +4 -3
@@ -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.
|
9
|
+
validation = model._validators[validation_field].detect do |valid|
|
10
10
|
valid.class.name =~ %r{#{type.capitalize}}
|
11
11
|
end
|
12
12
|
options ||= {}
|
data/riot-mongoid.gemspec
CHANGED
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:
|
4
|
+
hash: 62196455
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
|
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-
|
21
|
+
date: 2010-09-01 00:00:00 -07:00
|
21
22
|
default_executable:
|
22
23
|
dependencies:
|
23
24
|
- !ruby/object:Gem::Dependency
|