[jifty-devel] possible to override Jifty::Action or Jifty::Action::Record?

Jesse Vincent jesse at bestpractical.com
Wed Feb 14 01:55:07 EST 2007

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070214/3e6e0e74/PGP.pgp

More information about the jifty-devel mailing list