diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-07-01 21:11:07 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-07-01 21:16:54 +0200 |
| commit | 804c99fce66998ddcfd4970ff2c63141915bafd1 (patch) | |
| tree | cb489e4fad6ba586e14389a05c179b9aac0dc75d /app/models | |
| parent | 3e6ae9e523b410e9f100c8840ee9b6cc77043537 (diff) | |
| download | operum-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.rb | 2 |
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 |
