rails/rails — pull request #5995 by kennyj (2012-04-26 12:23:06+00:00)
Title: Fix #5847 and #4045. Load AR::Base before loading an application model.

I'm submitting this PR to master.
The original PR was https://github.com/rails/rails/pull/5879.
We should load active_record/base before loading some application models.

/cc @jonleighton