Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit a2e6a0f

Browse files
committed
Forced rails' pluralization engine to fetch :other value in breadcrumb_helper.rb
1 parent 1bff73d commit a2e6a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin/view_helpers/breadcrumb_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def breadcrumb_links(path = nil)
2121

2222
name = part.titlecase if name == ""
2323
begin
24-
crumbs << link_to( I18n.translate!("activerecord.models.#{part.singularize}", :count => 2), "/" + parts[0..index].join('/'))
24+
crumbs << link_to( I18n.translate!("activerecord.models.#{part.singularize}", :count => 1.1), "/" + parts[0..index].join('/'))
2525
rescue I18n::MissingTranslationData
2626
crumbs << link_to( name, "/" + parts[0..index].join('/'))
2727
end

0 commit comments

Comments
 (0)