gretelのconfigの自動リロードをdevelopment以外の環境で有効にしたい
問題
config/breadcrumbs.rb
の編集が即時反映されない。
解決
Rails.application.configure do
# config/breadcrumbs.rb を自動ロード
Gretel.configure do |config|
config.reload_environments << "my_development"
end
原因
ローカルで動作さている環境が development
でないため。
普通はローカル開発時は、developmentで動くから意識しなくても良い。
参考
# Sets the Rails environment names with automatic configuration reload. Default is +["development"]+.
attr_writer :reload_environments
# Yields this +Gretel+ to be configured.
#
# Gretel.configure do |config|
# config.reload_environments << "staging"
# end