pivotalexperimental / desert

Desert is a component framework for Rails that allows your plugins have a Rails app like directory structure, routes, migrations, and dependencies.
http://desert.rubyforge.org
186 stars 31 forks source link

load_paths deprecated for autoload_paths in 2.3.12 #12

Open kalleth opened 13 years ago

kalleth commented 13 years ago

Rails 2.3.12 deprecates load_paths in favour of autoload_paths which pretty much causes a shedload of deprecation warnings when using desert. This patch fixes it, and isn't -too- hacky.

I was a bit wary about checking if autoload_paths exists at every call, so I pushed it into another protected method. This seems to have fixed it for me.

I also fixed the gemspec as it wouldn't build correctly with me using Bundler - it expected MIT-LICENSE not MIT.LICENSE as exists in the source tree.

First pull request on github - be nice! :)