Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #637 from fbuenemann/fixes/all-scope-i18n

Fix scope i18n for 'all' scope
  • Loading branch information...
commit d91e47ed7309c552a23d71c88157d64461a16227 2 parents 21e3ada + 4a65e67
@gregbell gregbell authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/active_admin/views/components/scopes.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.