Skip to content

Commit

Permalink
titleize facet titles
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 24, 2018
1 parent c2f1d06 commit 9187b93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/facetable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9187b93

Please sign in to comment.