Module: Torque::PostgreSQL::Attributes::FullTextSearch

Defined in:
lib/torque/postgresql/attributes/full_text_search.rb

Overview

For now, full text search doesn’t have it’s own class

Class Method Summary collapse

Class Method Details

.include_on(klass, method_name = nil) ⇒ Object

Provide a method on the given class to setup which full text search columns will be manually initialized



11
12
13
14
# File 'lib/torque/postgresql/attributes/full_text_search.rb', line 11

def include_on(klass, method_name = nil)
  method_name ||= PostgreSQL.config.full_text_search.base_method
  Builder.include_on(klass, method_name, Builder::FullTextSearch)
end