aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-02-06 11:49:34 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-02-06 11:49:34 -0800
commit95dfcc4f3c4bda74efe220e6dd5a11f58f29a501 (patch)
tree84c5e2cbc9727dc4c5079cc3054d0d9efdb88d86 /activesupport/lib
parent468231ee50ec9ff94102fc409331deace7dce3a0 (diff)
downloadrails-95dfcc4f3c4bda74efe220e6dd5a11f58f29a501.tar.gz
rails-95dfcc4f3c4bda74efe220e6dd5a11f58f29a501.tar.bz2
rails-95dfcc4f3c4bda74efe220e6dd5a11f58f29a501.zip
Remove dummy Object#try before aliasing it
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/try.rb1
1 files changed, 1 insertions, 0 deletions
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