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
signature.asc
Description: Digital signature
_______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[email protected]
