Sha256: ac95b99673338d17b08b7aaa8019a7c747d9c35b6de34c822264ce6a80b3598e

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

# hook onto model index creation to create related FT indexes
module Mongoid
  module Indexes
    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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid_fulltext-0.8.2 lib/mongoid/full_text_search/indexes.rb