Many people use try to handle uncertain chaining. Let’s leave aside whether or not such chaining is a good practice.
- Rails 3.0.x seems to have no separate handling of the
tryfor theNilClass - Rails 3.2.x handle
nil.trydifferently thanobject.try
Does this difference lead to the nil.try case being faster on Rails > 3.0.x ?
trydoes exist on NilClass, but in ActiveSupport 3.0.4 was not located in a way that is as transparent as 3.1.x