remove_possible_method(method)
Removes the named method, if it exists.
# File activesupport/lib/active_support/core_ext/module/remove_method.rb, line 7 def remove_possible_method(method) if method_defined?(method) || private_method_defined?(method) undef_method(method) end end