5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-03 23:35:45 +00:00

al eliminar los saltos de línea se quedaban pegadas algunas palabras

This commit is contained in:
f 2021-05-07 16:21:59 -03:00
parent 4f2e602822
commit 2d3f5b21ae

View file

@ -61,7 +61,7 @@ class Post
# @return [String]
def indexable_content
indexable_attributes.map do |attr|
self[attr].to_s.remove("\n")
self[attr].to_s.tr("\n", ' ')
end.join("\n").squeeze("\n")
end