This blog is part of our Ruby 2.5 series.
Ruby 2.5 was recently released.
Ruby 2.4 returns top level
constant with a warning if it is unable to find find constant
in the specified scope.
This does not work well in cases where we need constants to be defined with
same name at top level and also in same scope.
Ruby 2.5 throws an error if it is unable to
find constant in the specified scope.
Here is relevant