[Radiant] Alias Page Extension
Brian Gernhardt
benji at silverinsanity.com
Tue Mar 13 20:34:51 CDT 2007
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
More information about the Radiant
mailing list