This project is archived and is in readonly mode.

#2324 new
Andrew White

config.reload_plugins = true only works in environment.rb

Reported by Andrew White | March 24th, 2009 @ 06:27 AM | in 3.x

The seemingly obvious place to add config.reload_plugins = true is in development.rb, however this doesn't work because add_plugin_load_paths is called before load_environment. I'm not sure whether this is a documentation issue or whether to come up with a patch.

Setting it in environment.rb shouldn't have any detrimental effect in production (I think), so a documentation update would be the easiest fix. However, if a patch is preferred maybe it'd be better to add a new process step rather than moving add_plugin_load_paths to after load_environment as changing the order of the process steps always seems to break something.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages