padrino/padrino-framework — Issue #731: prerequisites doesn't work
Author: philly-mac
Created: 2011-12-12 06:40:52+00:00
State: open

Hi,

I am trying to add some more directories to my auto load path by doing this

````
Padrino.before_load do
MyApp.prerequisites << Padrino.root("app/presenters/*.rb")
end
````

This is the way specified in the docs. But when I try and do this I get the following error

````
vendor/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing': uninitialized constant Object::MyApp (NameError)
`````

And even when I do this after the

````
Padrino.load!
````

command, and do a reload, the files in this directory are not loaded.

Is there something that I am doing wrong here?