Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Vitor Oliveira's Profile

GitHub User: vitormil

Site: http://www.infosiscs.com.br

Comments by Vitor Oliveira

Avatar

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.