Ommit nil in method call

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
Pavel Gorbokon 2010-12-07 18:55:43 +02:00 committed by Santiago Pastorino
parent ef79658bd1
commit 4c4c7a272f

@ -388,7 +388,7 @@ module ClassMethods
# 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")