5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 16:21:41 +00:00

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] # @return [String]
def indexable_content def indexable_content
indexable_attributes.map do |attr| indexable_attributes.map do |attr|
self[attr].to_s self[attr].to_s.remove("\n")
end.join("\n") end.join("\n").squeeze("\n")
end end
def indexable_attributes def indexable_attributes