mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove dummy Object#try before aliasing it
This commit is contained in:
parent
468231ee50
commit
95dfcc4f3c
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ class Object
|
||||||
def try(method, *args, &block)
|
def try(method, *args, &block)
|
||||||
send(method, *args, &block)
|
send(method, *args, &block)
|
||||||
end
|
end
|
||||||
|
remove_method :try
|
||||||
alias_method :try, :__send__
|
alias_method :try, :__send__
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue