Module: Mongoid::Indexes::ClassMethods
- Defined in:
- lib/mongoid_indexes.rb
Overview
hook onto model index creation to create related FT indexes
Instance Method Summary collapse
Instance Method Details
#create_fulltext_indexes_hook ⇒ Object
4 |
# File 'lib/mongoid_indexes.rb', line 4 alias_method :create_fulltext_indexes_hook, :create_indexes |
#create_indexes ⇒ Object
6 7 8 9 |
# File 'lib/mongoid_indexes.rb', line 6 def create_indexes create_fulltext_indexes if respond_to?(:create_fulltext_indexes) create_fulltext_indexes_hook end |