ddnexus/tire — comment on commit eeeac03d1e6b59232d677e3290dd9c3f82241988
File:  line 0
By ddnexus:

oooops... that's true.

Indeed the ruby-friendly DocumentType for a nested model creates a name with a slash, which would be interpreted as a path separator in the ES url. Besides, we have the same problem with the index_name, which is also not ruby-friendly for nested models. (i.e. you cannot translate from a default index_name to a class name). Maybe index names should follow the same logic of the conventional table name for e.g. mysql.

It would be nice encapsulate in Tire (maybe as an extension of String, or as a simple function) the conventional/default methods to convert index_names and document_type to model class names.