Method: Chewy::Type::Mapping::ClassMethods#template
- Defined in:
- lib/chewy/type/mapping.rb
#template(*args) ⇒ Object Also known as: dynamic_template
Defines dynamic template in mapping root objects
Name for each template is generated with the following
rule: template_#!{dynamic_templates.size + 1}.
178 179 180 |
# File 'lib/chewy/type/mapping.rb', line 178 def template(*args) root.dynamic_template(*args) end |