It is a pretty standard Ruby practice to re-open the class, but
sometimes I find this doesn't work as expected. Instead, you can try
doing a class_eval or module_eval on the intended class, which will
make sure it's auto-loaded before you try to override or extend it.
Example:

Radiant::AdminUI::Tab.class_eval {
# your code here
}

Cheers,

Sean

On 5/27/07, Stephane B. <[EMAIL PROTECTED]> wrote:
>
> > I would like to create a second level of navigation when needed, then
> > create a 'sub tab' system by simply extending current Tab with a TabSet
> > accessor.
> > need to
> > - add an accessor
> > - a method
> > - modify initialize
>
> I did it already by patching the code but I would like to do it in an
> exension.
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Radiant mailing list
> Post:   [email protected]
> Search: http://radiantcms.org/mailing-list/search/
> Site:   http://lists.radiantcms.org/mailman/listinfo/radiant
>
_______________________________________________
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