ENV['false'] is true
Here is a small Ruby ENV variable gotcha I encountered and how I fixed it. I had an environment variable controlling a feature flag: if ENV['DISABLE_THING'] # skip the thing end Set …
Here is a small Ruby ENV variable gotcha I encountered and how I fixed it. I had an environment variable controlling a feature flag: if ENV['DISABLE_THING'] # skip the thing end Set …