method
redefine_method
rails latest stable - Class:
Module
redefine_method(method, &block)public
Replaces the existing method definition, if there is one, with the passed block as its body.
redefine_method(method, &block)Replaces the existing method definition, if there is one, with the passed block as its body.