Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix scope i18n for 'all' scope #637
When using active_admin's i18n for scopes and the 'all' scope is included on a resource, scope.scope_method is nil and so the i18n scope resolves to '.active_admin.scopes', which outputs the hash of all keys under this i18n key.
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: