From 9187b932d3630584990389a3f4e130f04225b2e6 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Wed, 24 Oct 2018 19:00:33 +0200 Subject: [PATCH] titleize facet titles --- app/controllers/concerns/facetable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/concerns/facetable.rb b/app/controllers/concerns/facetable.rb index bbb7325b3..0c661ebcb 100644 --- a/app/controllers/concerns/facetable.rb +++ b/app/controllers/concerns/facetable.rb @@ -33,7 +33,7 @@ def facet_by_cumuative_year(arr) def facet_by_key(arr) arr.map do |hsh| { "id" => hsh["key"], - "title" => hsh["key"].humanize, + "title" => hsh["key"].titleize, "count" => hsh["doc_count"] } end end