al eliminar los saltos de línea se quedaban pegadas algunas palabras
This commit is contained in:
parent
4f2e602822
commit
2d3f5b21ae
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class Post
|
||||||
# @return [String]
|
# @return [String]
|
||||||
def indexable_content
|
def indexable_content
|
||||||
indexable_attributes.map do |attr|
|
indexable_attributes.map do |attr|
|
||||||
self[attr].to_s.remove("\n")
|
self[attr].to_s.tr("\n", ' ')
|
||||||
end.join("\n").squeeze("\n")
|
end.join("\n").squeeze("\n")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue