From 4c4c7a272fdcec12691ccf48b5eefce49b7bac8d Mon Sep 17 00:00:00 2001 From: Pavel Gorbokon Date: Tue, 7 Dec 2010 18:55:43 +0200 Subject: [PATCH] Ommit nil in method call Signed-off-by: Santiago Pastorino --- activesupport/lib/active_support/callbacks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/callbacks.rb b/activesupport/lib/active_support/callbacks.rb index 905dfb040b..4dcbbb819a 100644 --- a/activesupport/lib/active_support/callbacks.rb +++ b/activesupport/lib/active_support/callbacks.rb @@ -388,7 +388,7 @@ module ActiveSupport # key. See #define_callbacks for more information. # def __define_runner(symbol) #:nodoc: - body = send("_#{symbol}_callbacks").compile(nil) + body = send("_#{symbol}_callbacks").compile silence_warnings do undef_method "_run_#{symbol}_callbacks" if method_defined?("_run_#{symbol}_callbacks")