capitalize tags
This commit is contained in:
parent
45927db7a3
commit
3bda9bc5b2
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ module PreprocessHelper
|
||||||
type = type.to_s
|
type = type.to_s
|
||||||
tags = @items.find_all("/#{type.downcase}/*/*")
|
tags = @items.find_all("/#{type.downcase}/*/*")
|
||||||
.flat_map { |i| i[:tags] || [] }
|
.flat_map { |i| i[:tags] || [] }
|
||||||
|
.flat_map { |i| i.split.map(&:capitalize).join(' ') }
|
||||||
.uniq
|
.uniq
|
||||||
|
|
||||||
tags.each do |tag|
|
tags.each do |tag|
|
||||||
|
|
Loading…
Reference in a new issue