aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-01-01 03:20:38 +0100
committerJosé Valim <jose.valim@gmail.com>2010-01-01 03:20:38 +0100
commit8c5fe60ec82986ab4aa337a69c2ab753f518976d (patch)
tree13ac7474bd3da7b26d7aef896bf98951bffdeeee /activesupport
parent50fbb7405665ba1c2b7c6f23574053a4764cef7f (diff)
downloadrails-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')
-rw-r--r--activesupport/lib/active_support/callbacks.rb2
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