elimina el espacio vacío del contenido

This commit is contained in:
f 2021-05-06 19:47:43 -03:00
parent fd7ab8d7ef
commit 34a05e860d

View file

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