RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: vitormil
Site: http://www.infosiscs.com.br
I would recommend to use CONFIG.fetch(:key) instead of CONFIG[:key]. If for some reason the :key does not exist an KeyError exception will be raised.
CONFIG.fetch(:key)
CONFIG[:key]
:key
Sweet!
I would recommend to use
CONFIG.fetch(:key)instead ofCONFIG[:key]. If for some reason the:keydoes not exist an KeyError exception will be raised.Sweet!