gregbell/active_admin — pull request #637 by fbuenemann (2011-10-17 18:22:19+00:00)
Title: Fix scope i18n for 'all' scope

When using scope i18n and the 'all' scope is included, scope.scope_method is nil and so the i18n scope resolves to active_admin.scopes, which outputs the hash of all keys under this scope.

The fix falls back to the key active_admin.scopes.all, if the scope_method is not set.

See also this post on the mailing list from another user, that describes the problem and ways to reproduce:

http://groups.google.com/group/activeadmin/browse_thread/thread/3e52dd49c3669d4d