aboutsummaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 21:11:07 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 21:16:54 +0200
commit804c99fce66998ddcfd4970ff2c63141915bafd1 (patch)
treecb489e4fad6ba586e14389a05c179b9aac0dc75d /app/models
parent3e6ae9e523b410e9f100c8840ee9b6cc77043537 (diff)
downloadoperum-804c99fce66998ddcfd4970ff2c63141915bafd1.tar.gz
operum-804c99fce66998ddcfd4970ff2c63141915bafd1.zip
searches: Add rich text description
This allows for adding rich content to searches so it can be displayed in shared searches, for example. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'app/models')
-rw-r--r--app/models/search.rb2
1 files changed, 2 insertions, 0 deletions
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