Files
fizzy/app/models/search.rb
T
Donal McBreen 01d16f96d4 Remove Search::Record.for_account
Instead we'll compute the table name dynamically based on
Current.account where needed. Also we'll prevent searchable records
from being saved if Current.account is not set, otherwise the after
commit callbacks will fail.
2025-11-21 12:09:21 +00:00

10 lines
164 B
Ruby

module Search
def self.table_name_prefix
"search_"
end
def self.results(query:, user:)
Record.search(query: Query.wrap(query), user: user)
end
end