[Dbix-class] Overriding all()

Florian Ragwitz rafl at debian.org
Thu Jun 3 09:50:27 GMT 2010


On Thu, Jun 03, 2010 at 02:39:12AM -0700, Paul Makepeace wrote:
> Thanks, yeah. I was asking what the best practice way would be for
> overriding all() to achieve the ends I am after, namely adding in a
> couple of defaults. Like I say, this used to work possibly a long time
> ago, but not now.

Oh, right. Silly me for not reading past the error message.

I believe you're after something like

  __PACKAGE__->resultset_attributes({
    where => { visible => 'Y' },
    { order_by => 'sort desc' },
  });


-- 
BOFH excuse #421:
Domain controller not responding
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20100603/4096587a/attachment.pgp


More information about the DBIx-Class mailing list