From 8c5fe60ec82986ab4aa337a69c2ab753f518976d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Fri, 1 Jan 2010 03:20:38 +0100 Subject: Simplify repair_validations on AR and make it work with new callbacks. --- activesupport/lib/active_support/callbacks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') 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 -- cgit v1.2.3