We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 035c0eb commit 4a65e67Copy full SHA for 4a65e67
lib/active_admin/views/components/scopes.rb
@@ -17,7 +17,7 @@ def build(scopes)
17
def build_scope(scope)
18
span :class => classes_for_scope(scope) do
19
begin
20
- scope_name = I18n.t!("active_admin.scopes.#{scope.scope_method}")
+ scope_name = I18n.t!("active_admin.scopes.#{scope.scope_method||'all'}")
21
rescue I18n::MissingTranslationData
22
scope_name = scope.name
23
end
0 commit comments