From 2d3f5b21aef17ddef38c8fa53b8c850936a93a24 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 7 May 2021 16:21:59 -0300 Subject: [PATCH] =?UTF-8?q?al=20eliminar=20los=20saltos=20de=20l=C3=ADnea?= =?UTF-8?q?=20se=20quedaban=20pegadas=20algunas=20palabras?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/post/indexable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/post/indexable.rb b/app/models/post/indexable.rb index bee02e54..8a12e40c 100644 --- a/app/models/post/indexable.rb +++ b/app/models/post/indexable.rb @@ -61,7 +61,7 @@ class Post # @return [String] def indexable_content indexable_attributes.map do |attr| - self[attr].to_s.remove("\n") + self[attr].to_s.tr("\n", ' ') end.join("\n").squeeze("\n") end