This project is archived and is in readonly mode.
config.plugin_paths in specific environment configs fails
Reported by Dan Manges | June 19th, 2008 @ 06:59 PM
I tried to put this line in test.rb, but the plugins in vendor/testing_plugins failed to load.
config.plugin_paths += %W[#{RAILS_ROOT}/vendor/testing_plugins]
If I put this in environment.rb, the plugins in vendor/testing_plugins are added to the load path.
if RAILS_ENV == "test"
# this doesn't work if it's in test.rb
config.plugin_paths += %W[#{RAILS_ROOT}/vendor/testing_plugins]
end
Comments and changes to this ticket
-
josh September 30th, 2008 @ 05:49 PM
- State changed from new to stale
- Tag set to initializer, plugins
I think the plugins might be initialized before the env specific files are loaded.
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>