Commit c130e6c42beffcf33f9d9ef87224a3ae46283529

Authored by Andrew
1 parent 795190bf

No more _default_ type

lib/searchkick/index_options.rb
... ... @@ -4,7 +4,7 @@ module Searchkick
4 4 options = @options
5 5 language = options[:language]
6 6 language = language.call if language.respond_to?(:call)
7   - type = options[:_type] || :_default_
  7 + type = options[:_type]
8 8 type = type.call if type.respond_to?(:call)
9 9  
10 10 if options[:mappings] && !options[:merge_mappings]
... ...
lib/searchkick/model.rb
... ... @@ -12,7 +12,7 @@ module Searchkick
12 12  
13 13 Searchkick.models << self
14 14  
15   - options[:_type] ||= -> { searchkick_index.klass_document_type(self, true) } if options[:inheritance]
  15 + options[:_type] ||= -> { searchkick_index.klass_document_type(self, true) }
16 16  
17 17 class_eval do
18 18 cattr_reader :searchkick_options, :searchkick_klass
... ...