Skip to content

Commit 4a65e67

Browse files
Fix scope i18n for 'all' scope
1 parent 035c0eb commit 4a65e67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/views/components/scopes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def build(scopes)
1717
def build_scope(scope)
1818
span :class => classes_for_scope(scope) do
1919
begin
20-
scope_name = I18n.t!("active_admin.scopes.#{scope.scope_method}")
20+
scope_name = I18n.t!("active_admin.scopes.#{scope.scope_method||'all'}")
2121
rescue I18n::MissingTranslationData
2222
scope_name = scope.name
2323
end

0 commit comments

Comments
 (0)