rails/rails — Issue #3364: Rails 3.1.1: ActiveRecord::Base#descendants returns [] after first request.
Author: stanislaw
Created: 2011-10-19 11:29:45+00:00
State: open

I've read topics about this issue, but it is likely that solutions proposed there are not enough to be good:

http://stackoverflow.com/questions/5888313/ror-mymodel-descendants-returns-in-a-view-after-the-first-call
http://www.ruby-forum.com/topic/1642198

Here is almost empty Rails mountable engine setup that demonstrates this (as on engine level, as on spec/dummy app's one):
https://github.com/stanislaw/cantango_editor/tree/descendants

Is this a Rails issue, or what is the best workaround here then?

Thanks!