Please sign in to comment.
Fix to prevent "try" function redefinition when it already exists.
We already use a more generic try function. mofo overrides our better try method so let's prevent this A better try method is def try(method, *args) send(method, *args) if respond_to?(method) end With this, we can also do some stuff like item.try(:key=, value)
- Loading branch information...