durran-validatable 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 0
4
- :patch: 0
4
+ :patch: 1
5
5
  :build:
@@ -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.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-09 00:00:00 -05:00
14
+ date: 2010-01-10 00:00:00 -05:00
15
15
  default_executable:
16
16
  dependencies: []
17
17