Displaying 1 result from an estimated 1 matches for "brielfy".
Did you mean:
briefly
2006 Jan 02
0
Best practice for registering/discovering STI subclasses?
...e aware of
the different types of content that are available so that, for
instance, this list of links in the view is dynamically generated. I
don''t want the app to have hard-coded in its initialization the
knowledge that there are two types of Content classes, FooContent and
BarContent.
Brielfy the Class.inherited method looked promising as a way to detect
subclassing, but doesn''t work for a couple of reasons including the
fact that Rails doesn''t appear to load the FooContent or BarContent
classes until ActiveRecord encounters a record of that type, which
produces a chic...