rails/rails — pull request #5994 by kennyj (2012-04-26 12:11:33+00:00)
Title: Fix #5847 and #4045. Force load AR::Base before loading an application model.

I'm sumitting 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