gregbell/active_admin — pull request #2451 by Daxter (2013-09-02 21:59:41+00:00)
Title: [2342] Prevent db access during rake tasks

Addresses #2342 by lazy-loading the sort order, which depends on DB access. Since when using Heroku the asset precompile task doesn't have access to the DB, this was an issue for many users.

Note that prior to Rails 4 the DB was needed just to load the app, so this change wasn't necessary until now.