From 95dfcc4f3c4bda74efe220e6dd5a11f58f29a501 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 6 Feb 2009 11:49:34 -0800 Subject: Remove dummy Object#try before aliasing it --- activesupport/lib/active_support/core_ext/try.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport/lib/active_support/core_ext/try.rb') diff --git a/activesupport/lib/active_support/core_ext/try.rb b/activesupport/lib/active_support/core_ext/try.rb index 54a38c5189..3de198d198 100644 --- a/activesupport/lib/active_support/core_ext/try.rb +++ b/activesupport/lib/active_support/core_ext/try.rb @@ -25,6 +25,7 @@ class Object def try(method, *args, &block) send(method, *args, &block) end + remove_method :try alias_method :try, :__send__ end -- cgit v1.2.3