mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 12:21:43 +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]
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue