Class: DashOverlord::UseCases::V1::Shared::SearchAndPaginate::ApplyFullTextSearch

Inherits:
Base
  • Object
show all
Defined in:
lib/dash_overlord/use_cases/v1/shared/search_and_paginate/apply_full_text_search.rb

Constant Summary

Constants inherited from Base

Base::AbortError

Instance Attribute Summary

Attributes inherited from Base

#context

Instance Method Summary collapse

Methods inherited from Base

context_reader, #final, #initialize, perform, target, #target_valid?

Constructor Details

This class inherits a constructor from DashOverlord::UseCases::Base

Instance Method Details

#performObject



10
11
12
13
14
15
# File 'lib/dash_overlord/use_cases/v1/shared/search_and_paginate/apply_full_text_search.rb', line 10

def perform
  return if full_text_term.blank?
  return unless resources.respond_to?(:ft)

  context.resources = resources.ft(full_text_term)
end