Created
March 25, 2020 20:09
-
-
Save hadrienblanc/5ac48989c74020b5a478b32e62389d48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveModel::Type::Boolean.new.cast(ENV.fetch('MY_ENV_VARIABLE', false)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment