diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-08-20 10:17:29 -0400 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-08-20 11:24:43 -0300 |
commit | 2ffa50f5a9fac08e08869687006031b70322497a (patch) | |
tree | fd79f4abae332bb2abab2ebba82fc653deaaaec6 /activemodel/lib | |
parent | 0d0fbf1e648606c9499e332bad412da005a4e37f (diff) | |
download | rails-2ffa50f5a9fac08e08869687006031b70322497a.tar.gz rails-2ffa50f5a9fac08e08869687006031b70322497a.tar.bz2 rails-2ffa50f5a9fac08e08869687006031b70322497a.zip |
after_validation should be called irrespective of the result of validation.
I confirmed that this is the behavior on 2.3.x .
[5419 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/validations/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/validations/callbacks.rb b/activemodel/lib/active_model/validations/callbacks.rb index afd65d3dd5..858cfda73e 100644 --- a/activemodel/lib/active_model/validations/callbacks.rb +++ b/activemodel/lib/active_model/validations/callbacks.rb @@ -40,7 +40,7 @@ module ActiveModel options = args.extract_options! options[:prepend] = true options[:if] = Array.wrap(options[:if]) - options[:if] << "!halted && value != false" + options[:if] << "!halted" options[:if] << "self.validation_context == :#{options[:on]}" if options[:on] set_callback(:validation, :after, *(args << options), &block) end |