mhuggins / multiple_table_inheritance

Multiple Table Inheritance is a plugin designed to allow for multiple table inheritance between your database tables and your ActiveRecord models.
30 stars 4 forks source link

unable to use default_scope on parent model #9

Open ddidier opened 11 years ago

ddidier commented 11 years ago

Hi

When adding a default scope to the base model, I got:

Failure/Error: Unable to find matching line from backtrace
     SystemStackError:
       stack level too deep
     # /home/..gems/activerecord-3.2.9/lib/active_record/dynamic_finder_match.rb:14
mhuggins commented 11 years ago

Looks like a legit bug. Can't promise I'll be able to get to it since I've been pretty busy and haven't worked on this gem in a long while, but feel free to submit a fix if you end up looking into it!