Skip to content

load_paths deprecated for autoload_paths in 2.3.12 - #12

Open
kalleth wants to merge 2 commits into
pivotalexperimental:masterfrom
kalleth:master
Open

load_paths deprecated for autoload_paths in 2.3.12#12
kalleth wants to merge 2 commits into
pivotalexperimental:masterfrom
kalleth:master

Conversation

@kalleth

@kalleth kalleth commented Aug 4, 2011

Copy link
Copy Markdown

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! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant