The Constant Frozen at Boot Bug: A Ruby Exercise For An Interview | @zhisme
03-Jul-2026 11
A real-world Ruby/Rails bug: class-level constants are evaluated once at class load time. If a DB lookup returns nil at boot, the constant stays nil for the whole process lifetime. Why it happens, why it's silent, and how to fix it.
The Constant Frozen at Boot Bug: A Ruby Exercise For An Interview | @zhisme #ruby #rubydeveloper #rubyonrails #Constant #Frozen #Exercise #Interview #@zhisme #bug: https://www.rubyonrails.ba/link/the-constant-frozen-at-boot-bug-a-ruby-exercise-for-an-interview-zhisme