Module: PgSearchable::ActiveRecord::Extensions::ClassMethods
- Defined in:
- lib/pg_searchable/active_record/extensions.rb
Instance Method Summary collapse
Instance Method Details
#pg_searchable(name, options = {}) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/pg_searchable/active_record/extensions.rb', line 16 def pg_searchable (name, = {}) pg_searchable_configs[name.to_sym] = { tgrm: , dmetaphone: , tsearch: }.deep_merge() end |
#pg_searchable_configs ⇒ Object
24 25 26 |
# File 'lib/pg_searchable/active_record/extensions.rb', line 24 def pg_searchable_configs @pg_searchable_configs ||= {} end |