lib/mongoid/full_text_search/indexable.rb
# hook onto model index creation to create related FT indexes
module Mongoid
module Indexable
module ClassMethods
alias create_fulltext_indexes_hook create_indexes
def create_indexes
create_fulltext_indexes if respond_to?(:create_fulltext_indexes)
create_fulltext_indexes_hook
end
end
end
end