Skip to content

Commit

Permalink
Fix scope i18n for 'all' scope
Browse files Browse the repository at this point in the history
  • Loading branch information
felixbuenemann committed Oct 17, 2011
1 parent 035c0eb commit 4a65e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_admin/views/components/scopes.rb
Expand Up @@ -17,7 +17,7 @@ def build(scopes)
def build_scope(scope) def build_scope(scope)
span :class => classes_for_scope(scope) do span :class => classes_for_scope(scope) do
begin 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 rescue I18n::MissingTranslationData
scope_name = scope.name scope_name = scope.name
end end
Expand Down

0 comments on commit 4a65e67

Please sign in to comment.