On Mar 13, 2007, at 6:50 PM, Daniel Sheppard wrote:

> "OMG!! what if you have like a bajillion different not found page  
> types? That would suck"

True, and subclasses_of is a bit of a slow operation (iterates over  
every class in ObjectSpace).  Might be better to have a registration  
method instead.

class MyNotFoundPage < Page
    not_found_class
end

That way the class array is assembled once, and the IN itself should  
be relatively quick (It's a common DB operation).

~~ Brian
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to