petehamilton / citier

CITIER (Class Inheritance & Table Inheritance Embeddings for Rails) is a solution for simple Multiple Class Inheritance in Rails.
88 stars 24 forks source link

stack level too deep (when changing model inheritance) #59

Open harvj opened 12 years ago

harvj commented 12 years ago

I'm trying to use this gem to convert some models that already exist in the following way. So far this works:

Created models:

Attachable < ActiveRecord::Base
Link < Attachable

I added acts_as_citier to both models, created and ran the migrations with no problem. Views are created as well. Now if I try to do this to an existing model:

Before:

SpecialLink < ActiveRecord::Base

After:

SpecialLink < Link

and then I try to run any command like rails g migration or rails console, I get:

script/rails:6: stack level too deep (SystemStackError)

Unfortunately, this doesn't tell me a whole lot beyond a suspicion that I have an infinite loop somewhere. Does anyone know what might be causing this? Or have an idea of where I can look or get more information about the issue? It would not be a good solution for me to have to create the models again from scratch to work with citier...