Permalink
Browse files

Remove dummy Object#try before aliasing it

  • Loading branch information...
1 parent 468231e commit 95dfcc4f3c4bda74efe220e6dd5a11f58f29a501 @jeremy jeremy committed Feb 6, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 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

0 comments on commit 95dfcc4

Please sign in to comment.