Description
hey there,
thanks for the great gem.
just followed your docs and came across the folowwing issue when working with inheritance in my rails models.
With the default settings
Ticket::EmailTicket.__elasticsearch__.index_name
return me the correct index name ticket-email_tickets
but when Elasticsearch::Model.settings[:inheritance_enabled] = true
I get a
SystemStackError: stack level too deep
from /usr/local/lib/ruby/2.0.0/irb/workspace.rb:86
when accessing the index_name. Obviously also for all methods using the index_name
I have very easy inheritance: Ticket::Ticket
is the superclass of Ticket::EmailTicket
and also includes the Elasticsearch::Model
I would expect Ticket::EmailTicket.__elasticsearch__.index_name
to return ticket-tickets
I'm running on ruby 2.0 and rails 3.2. maybe the modules in my models make this problem.
Happy about any advice.
best