diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-01 03:20:38 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-01 03:20:38 +0100 |
commit | 8c5fe60ec82986ab4aa337a69c2ab753f518976d (patch) | |
tree | 13ac7474bd3da7b26d7aef896bf98951bffdeeee /activesupport/lib/active_support/callbacks.rb | |
parent | 50fbb7405665ba1c2b7c6f23574053a4764cef7f (diff) | |
download | rails-8c5fe60ec82986ab4aa337a69c2ab753f518976d.tar.gz rails-8c5fe60ec82986ab4aa337a69c2ab753f518976d.tar.bz2 rails-8c5fe60ec82986ab4aa337a69c2ab753f518976d.zip |
Simplify repair_validations on AR and make it work with new callbacks.
Diffstat (limited to 'activesupport/lib/active_support/callbacks.rb')
-rw-r--r-- | activesupport/lib/active_support/callbacks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 2fdba2ef1f..47e90df200 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -390,7 +390,7 @@ module ActiveSupport def _run_#{symbol}_callbacks(key = nil, &blk) if self.class.send("_update_#{symbol}_superclass_callbacks") self.class.__define_runner(#{symbol.inspect}) - return _run_#{symbol}_callbacks + return _run_#{symbol}_callbacks(key, &blk) end if key |