diff options
author | Pavel Gorbokon <pahanix@gmail.com> | 2010-12-07 18:55:43 +0200 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-12-07 20:55:39 -0200 |
commit | 4c4c7a272fdcec12691ccf48b5eefce49b7bac8d (patch) | |
tree | b8c3d4d7aa7b25e15ec5b8ca4f88f4b5ee28ef55 | |
parent | ef79658bd143a9243eefa90db2f9ce300f18dd0d (diff) | |
download | rails-4c4c7a272fdcec12691ccf48b5eefce49b7bac8d.tar.gz rails-4c4c7a272fdcec12691ccf48b5eefce49b7bac8d.tar.bz2 rails-4c4c7a272fdcec12691ccf48b5eefce49b7bac8d.zip |
Ommit nil in method call
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
-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 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") |