Method: Chewy::Index::Adapter::Base#type_name
- Defined in:
- lib/chewy/index/adapter/base.rb
#type_name ⇒ Object
Underscored type name, user for elasticsearch type creation
and for type class access with ProductsIndex.type_hash hash or method.
ProductsIndex.type_hash['product'] or ProductsIndex.product
26 27 28 |
# File 'lib/chewy/index/adapter/base.rb', line 26 def type_name @type_name ||= name.underscore end |