Subject: | Patch to Decouple From Catalyst |
Date: | Thu, 13 Dec 2012 21:47:33 -0600 |
To: | bug-Catalyst-TraitFor-Controller-DBIC-DoesPaging [...] rt.cpan.org |
From: | Daniel Baber <danielb [...] libentech.com> |
Hello I was wondering if you'd be willing to take a patch that would couple
this module less tightly to catalyst. Instead of accepting $c as the first
argument to everything could we instead take a hash of params (with
catalyst you can usually just pass in $c->req->params) so it would be
possible to do validation of these parameters with something like
FormValidator before applying all the paging, searching, and sorting
goodness.
I have attached a patch doing just that. It also updates the POD docs in
the module as well and some of the test code so all the current tests pass.
Thanks,
Dan
--
"I sincerely believe ... that banking establishments are more dangerous
than standing armies, and that the principle of spending money to be paid
by posterity, under the name of funding, is but swindling futurity on a
large scale."
-- Thomas Jefferson in a letter to John Taylor May 28, 1816
Support The Campaign For Liberty - http://www.campaignforliberty.com, Sign
up Now!
Message body is not shown because sender requested not to inline it.