[jifty-devel] possible to override Jifty::Action or
efunneko at gmail.com
Wed Feb 14 09:35:44 EST 2007
Is IRC #jifty logged anywhere? It could be quite useful if questions are
asked and answered there.
On 2/14/07, Jesse Vincent <jesse at bestpractical.com> wrote:
> Just for those playing the home game, Joshua and I talked about this
> on IRC and he's working on a patch to help make this (very useful)
> functionality available)
> On Feb 11, 2007, at 12:58 AM, Joshua Pollack wrote:
> > Is it possible to write code in my app that somehow replaces
> > Jifty::Action or Jifty::Action::Record? I would like to be able to
> > add some functionality to all Actions in my app, including the ones
> > that are automagically generated for me, like
> > MyApp::Action::CreateFoo.
> > I tried creating MyApp::Action explicitly (in the lib directory),
> > expecting that the CreateFoo action would inherit from it, but the
> > automagically generated one inherits from
> > Jifty::Action::Record::Create.
> > I can, of course, create a small army of tiny .pm files, for each of
> > my Models creating the four associated Actions, and within each of
> > those explicitly subclassing J:A:R:Create and MyApp::Action, and this
> > works, but it's messy.
> > Given Jifty's magic that can create modules for me, is there a simple
> > way to add to the modules those created ones inherit from, while still
> > benefiting from the magic (ie, w/o having to manually create all the
> > files).
> > Thanks,
> > Joshua
> > _______________________________________________
> > jifty-devel mailing list
> > jifty-devel at lists.jifty.org
> > http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jifty-devel