It used to be that try
was implemented on Object
, which meant that try
would always call the original object, instead of the delgator instance.
With Rails 5, updates were made that should mean that both DelegateClass(Doodad)
and SimpleDelegator
can both use try
successfully, but it doesn't actually work!
As you can see in the example code, the SimpleDelegator
class is able to resuce
the error and the DelegateClass
is not.
¯_(ツ)_/¯