Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix scope i18n for 'all' scope

  • Loading branch information...
commit 4a65e672e95e4e8bc7f1c3722c554dc11f0f6de6 1 parent 035c0eb
Felix Bünemann authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/active_admin/views/components/scopes.rb
2  lib/active_admin/views/components/scopes.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.