durran-validatable 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/lib/validatable_instance_methods.rb +2 -1
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -4,7 +4,7 @@ module Validatable
|
|
4
4
|
klass.extend Validatable::Macros
|
5
5
|
klass.class_eval do
|
6
6
|
include ActiveSupport::Callbacks
|
7
|
-
define_callbacks :before_validation, :after_validation
|
7
|
+
define_callbacks :before_validation, :after_validation, :validate
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
@@ -26,6 +26,7 @@ module Validatable
|
|
26
26
|
run_before_validations
|
27
27
|
errors.clear
|
28
28
|
run_callbacks(:before_validation)
|
29
|
+
run_callbacks(:validate)
|
29
30
|
self.class.validate_children(self, group)
|
30
31
|
self.validate_group(group)
|
31
32
|
run_callbacks(:after_validation)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: durran-validatable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Fields
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2010-01-
|
14
|
+
date: 2010-01-10 00:00:00 -05:00
|
15
15
|
default_executable:
|
16
16
|
dependencies: []
|
17
17
|
|