Frederick Cheung wrote in post #996771:
> descendants returns all loaded subclasses, but when class caching is
> off, classes are cleared out, so the freshly loaded copy of MyModel has
> no loaded subclasses.

Robert Pankowecki wrote in post #996778:
> Use require_dependency to load subclasses.

@ Fred: Ah!  That makes sense -- now I see why my initialize-time 
require worked only the first time.

@Robert & @Fred: require_dependency it shall be.

Thanks all!

- ff

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to