Hi,

I just subscribed to the rails-core ML. I hope my request fits the
subject of this mailing list, let me know if I'm at the wrong place.

I've looked for, but didn't find a lot of information on the changes
that happened to the plugin system in the rails 1.1 release. Below
you'll find the description (sent to  the general rails ML without
success) of a problem I have with plugins when I upgrade to RoR 1.1,
and I'd like to adapt them. I also have one plugin I'd like to release
after I adapt it to rails 1.1.

Thanks for your help

Raph

problem description:
--------------------------

I'm looking to upgrade an application based on rails 1.0, and I have a
problem with plugins working fine in development, but not in
production or test. Actually, it happens in all environments with
their dependency mechanism set to :load.

For example for the selenium on rails plugin, it needs the class
SeleniumOnRailsConfig, which triggers the dependency on
'selenium_on_rails'. First, the file 'rails/selenium_on_rails' is
searched. If cannot be loaded, it raises the exception LoadError. The
problem I see is that only MissingSourceFile exceptions are treated in
activesupport/lib/active_support/dependencies.rb on line 102.  When
the dependency mechanism is :load, it stops here.

When the exeption MissingSourceFile is raised (happens in development
where the dependency mechanism is :require), it tries to use the file
"selenium_on_rails", without the "rails/" prefix and it succeeds.

Anyone know how I can fix this?

Here is the svninfo from vendor/rails (where I checked out a stable
version some time ago, and I updated it with svn update):

Path: .
URL: http://dev.rubyonrails.org/svn/rails/branches/stable
Repository UUID: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Revision: 4214
Node Kind: directory
Schedule: normal
Last Changed Author: rick
Last Changed Rev: 4212
Last Changed Date: 2006-04-14 16:14:27 +0200 (Fri, 14 Apr 2006)
Properties Last Updated: 2006-04-08 10:21:32 +0200 (Sat, 08 Apr 2006)
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core

Reply via email to