diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-02-06 11:49:34 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-02-06 11:49:34 -0800 |
commit | 95dfcc4f3c4bda74efe220e6dd5a11f58f29a501 (patch) | |
tree | 84c5e2cbc9727dc4c5079cc3054d0d9efdb88d86 /activesupport | |
parent | 468231ee50ec9ff94102fc409331deace7dce3a0 (diff) | |
download | rails-95dfcc4f3c4bda74efe220e6dd5a11f58f29a501.tar.gz rails-95dfcc4f3c4bda74efe220e6dd5a11f58f29a501.tar.bz2 rails-95dfcc4f3c4bda74efe220e6dd5a11f58f29a501.zip |
Remove dummy Object#try before aliasing it
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/try.rb | 1 |
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 |