Fixes #445.

I found the magic code here: https://github.com/gregbell/active_admin/issues/279. Love those one-liner fixes.