If you ever wondered why a constant wasn't defined or wasn't available where you expected it to be, this article will help.
Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)
Also see Ruby constant lookup: The good, the bad and the ugly.