Ommit nil in method call
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
This commit is contained in:
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")
|
||||
|
Loading…
Reference in New Issue
Block a user