Method: ES::Index::Model::ClassMethods#es_type
- Defined in:
- lib/es/index/model.rb
#es_type(val = nil) ⇒ Object
115 116 117 118 119 120 121 122 |
# File 'lib/es/index/model.rb', line 115 def es_type(val=nil) if val @es_type = val else self.es_index_model @es_type || self.name.to_s.underscore end end |