From 804c99fce66998ddcfd4970ff2c63141915bafd1 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 1 Jul 2025 21:11:07 +0200 Subject: searches: Add rich text description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows for adding rich content to searches so it can be displayed in shared searches, for example. Signed-off-by: Miquel Sabaté Solà --- app/models/search.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/models') diff --git a/app/models/search.rb b/app/models/search.rb index e1c3a9b..9886f36 100644 --- a/app/models/search.rb +++ b/app/models/search.rb @@ -6,6 +6,8 @@ class Search < ApplicationRecord belongs_to :user + has_rich_text :description + # Returns all the results that can be fetched with the current `body`. It's # returned into a hash which groups the taggable types. def results -- cgit v1.2.3