Rails Consoleで確認するとConfig(Settings)の更新がされない時
定数を環境毎に管理できるgem config
で、config/settings.yml
の中身を変更して、Rails Consoleで確認しても反映されない場合がある。
その場合は、単純にspring
が起動していたためだった。
$ ./bin/spring status Spring is running: 4475 spring server | xxx | started 57 mins ago 4768 spring app | xxx | started 22 mins ago | development mode $ ./bin/spring stop Spring stopped. $ ./bin/spring status Spring is not running. $ ./bin/rails c > Settings.hoge => "hoge"