From cd9ffd11e13ef6e62eba2cbd5c3760ff04132820 Mon Sep 17 00:00:00 2001 From: wycats Date: Tue, 16 Mar 2010 23:24:00 -0700 Subject: Eliminate warnings for AM on 1.8 --- activesupport/lib/active_support/core_ext/module/remove_method.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 activesupport/lib/active_support/core_ext/module/remove_method.rb (limited to 'activesupport/lib/active_support/core_ext/module/remove_method.rb') diff --git a/activesupport/lib/active_support/core_ext/module/remove_method.rb b/activesupport/lib/active_support/core_ext/module/remove_method.rb new file mode 100644 index 0000000000..2714a46b28 --- /dev/null +++ b/activesupport/lib/active_support/core_ext/module/remove_method.rb @@ -0,0 +1,6 @@ +class Module + def remove_possible_method(method) + remove_method(method) + rescue NameError + end +end \ No newline at end of file -- cgit v1.2.3