This is on an app that successfully runs Engines 1.2, and Rails
1.2.6.... but ported to Engines 2.0.0-RC1, and Rails 2.0.1.
Added the engines boot.rb line to environment.rb after the existing
boot require. The engines init.rb has not been changed, and sets:
Rails.plugins[:project].code_paths << "app/interests" << "app/
apis" (which can be called via Engine.plugins now... but same
exception is thrown).
init.rb:20:in `evaluate_init_rb': You have a nil object when you
didn't expect it! (NoMethodError)
The error occurred while evaluating nil.code_paths from ./
script/../config/../vendor/rails/railties/lib/rails/plugin.rb:79:in
`evaluate_init_rb'
from /projects/vendor/rails/activesupport/lib/active_support/
core_ext/kernel/reporting.rb:11:in `silence_warnings'
from ./script/../config/../vendor/rails/railties/lib/rails/
plugin.rb:75:in `evaluate_init_rb'
from ./script/../config/../vendor/rails/railties/lib/rails/
plugin.rb:39:in `load'
from /projects/config/../vendor/plugins/engines/lib/engines/
plugin.rb:77:in `load'
from ./script/../config/../vendor/rails/railties/lib/rails/
plugin/loader.rb:33:in `load_plugins'
from ./script/../config/../vendor/rails/railties/lib/rails/
plugin/loader.rb:32:in `each'
from ./script/../config/../vendor/rails/railties/lib/rails/
plugin/loader.rb:32:in `load_plugins'
... 30 levels...
from /projects/vendor/rails/activesupport/lib/active_support/
dependencies.rb:496:in `require'
from /projects/vendor/rails/railties/lib/commands/server.rb:39
from script/server:3:in `require'
from script/server:3
No time to debug at the moment, as this isn't a priority... but, just
wanted to get this out there if this is a known issue, or anybody has
any suggestions.
Cheers !
==
Dylan
_______________________________________________
Engine-Developers mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org