if $r->model_class
and $r->model_class->can('authenticate');
if $r->model_class
and $r->model_class->can('authenticate');
- # passing $r is unnecessary and redundant, but there's probably
- # a lot of code out there now using the 2nd instead of the 1st $r,
- # so we may as well leave it
+ # if the driver ($r) and the request ($r) ever get separated out
+ # properly, then passing the request as an argument will make more sense
return $r->authenticate($r);
}
return $r->authenticate($r);
}