[Catalyst] Some guidance needed please
Ian Docherty
catalyst at iandocherty.com
Thu Sep 13 12:21:43 GMT 2007
Will Hawes wrote:
...
>
> Isn't this just a case of adding a create_limited() method to your
> model class?
>
> package MyApp::Schema::UsedPassword;
> ...
> sub create_limited {
> my( $self, $user, $password ) = @_;
> # password checking logic here
> }
>
> In your controller:
>
> $c->model('DBIC::UsedPassword')->create_limited( ... );
Well, that was my first thought, but I get the following error if I try
to do that...
Can't locate object method "create_limited" via package
"DBIx::Class::ResultSet
Regards
Ian
More information about the Catalyst
mailing list