Bob Silva
Posts: 94
Nickname: bobsilva
Registered: Feb, 2006
|
Bob Silva is a Rails Developer for the UMESD
|
|
|
|
Autoload Support for Models in Subdirectories Removed
|
Posted: Sep 7, 2006 5:56 PM
|
|
The auto loading path which make models in subdirectories of app/models load in Rails has been removed from the lastest trunk. If you are using models in subdirectories of the app/models path, you will now need to add this in your environment.rb:
config.autoload_paths += Dir[RAILS_ROOT + '/app/models/*/']
This won't affect most users, but if you've organized your models into subdirectories similar to the convention used for namespaces controllers, then you will want to update your applications before you move to 1.2.
Specifically, the following path was removed:
#{root_path}/app/models/[_a-z]*"]
Read: Autoload Support for Models in Subdirectories Removed
|
|