Permalink
Browse files

Fix scope i18n for 'all' scope

  • Loading branch information...
1 parent 035c0eb commit 4a65e672e95e4e8bc7f1c3722c554dc11f0f6de6 @felixbuenemann committed Oct 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_admin/views/components/scopes.rb
@@ -17,7 +17,7 @@ def build(scopes)
def build_scope(scope)
span :class => classes_for_scope(scope) do
begin
- scope_name = I18n.t!("active_admin.scopes.#{scope.scope_method}")
+ scope_name = I18n.t!("active_admin.scopes.#{scope.scope_method||'all'}")
rescue I18n::MissingTranslationData
scope_name = scope.name
end

0 comments on commit 4a65e67

Please sign in to comment.