mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ommit nil in method call
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
parent
ef79658bd1
commit
4c4c7a272f
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue