Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

config.plugin_paths in specific environment configs fails

#451

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

Reported by Dan Manges · June 19th, 2008 @ 06:59 PM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. josh
    josh
    • 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.

    September 30th, 2008 @ 05:49 PM