Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11116 (new defect)

Opened 10 months ago

Last modified 8 months ago

[PATCH][TINY] config.plugin_paths can no longer be modified in environment/[test|production|..].rb

Reported by: alainravet Assigned to: core
Priority: normal Milestone: 2.x
Component: ActionPack Version: edge
Severity: normal Keywords: patch tiny
Cc:

Description

In the past you could f.ex. 1° : move all the test-only plugins to vendor/plugin-test/, and 2° : tell Rails how to find them by adding

   config.plugin_paths << "#{RAILS_ROOT}/vendor/plugins-test"

in environment/test.rb.

It no longer works and the workaround is to to write this in environment.rb :

  if  ENV['RAILS_ENV'] == 'test'
    config.plugin_paths << "#{RAILS_ROOT}/vendor/plugins-test"
  end

Attachments

load_plugin_path.diff (1.7 kB) - added by david.calavera on 03/22/08 22:27:32.
the file includes the patch and a test case

Change History

03/22/08 15:54:18 changed by david.calavera

  • summary changed from config.plugin_paths can no longer be modified in environment/[test|production|..].rb to [PATCH] config.plugin_paths can no longer be modified in environment/[test|production|..].rb.

03/22/08 16:45:33 changed by david.calavera

  • summary changed from [PATCH] config.plugin_paths can no longer be modified in environment/[test|production|..].rb to [PATCH][TINY] config.plugin_paths can no longer be modified in environment/[test|production|..].rb.

03/22/08 22:27:32 changed by david.calavera

  • attachment load_plugin_path.diff added.

the file includes the patch and a test case

03/22/08 22:42:23 changed by cavalle

  • keywords set to patch tiny.

+1 Tests pass