mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 16:11:42 +00:00
elimina el espacio vacío del contenido
This commit is contained in:
parent
fd7ab8d7ef
commit
34a05e860d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue