Defect #180

[PATCH] Plugins break in the Rails 2.0 with the latest engines.

Added by Eric Davis over 11 years ago. Updated about 11 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-
Resolution: Affected version:

Description

I recently upgraded to Rails 2.0 and needed to upgrade Engines also. After this my plugin routes were not being recognized
anymore. In the console I found my Engine plugins (Redmine plugins) were not being loaded.

$ script/console
Loading development environment (Rails 2.0.2)
GLoc v1.1 running in development mode. Strings can be modified at runtime.
>> Engines.plugins
=> []

The documentation for Engines says they need to be loaded in environment.rb with the following line:

require File.join(File.dirname(FILE), '../vendor/plugins/engines/boot')

After adding that to Redmine, the plugins loaded successfully.

Eric

redmine-engines.diff Magnifier (518 Bytes) Eric Davis, 2008-02-03 10:53

Associated revisions

Revision 1281
Added by Jean-Philippe Lang about 11 years ago

Load Engines plugin if available (closes #180).

History

#1 Updated by Rocco Stanzione about 11 years ago

I had to do this too. Can we get this added?

#2 Updated by Jean-Philippe Lang about 11 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset r1281.

Also available in: Atom PDF