Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch error and warn if unable to remove a method
In some cases there can be a method that's detected with `method_defined?`, but which cannot be removed with `remove_method`, even though it's on the same class. The only case so far that we've noticed this is when a class is reopened for monkey patching like in issue #749. We'll still try to discourage this sort of use, but here we swallow the error and issue a warning so at least the program doesn't crash. Fixes #749.
- Loading branch information