first draft of auto_create/auto_update for dbix-class store
Brian Cassidy [Tue, 9 Oct 2007 20:30:21 +0000 (20:30 +0000)]
lib/Catalyst/Plugin/Authentication/Store/DBIx/Class.pm

index 019a185..989bba2 100644 (file)
@@ -71,6 +71,18 @@ sub user_supports {
     $self->config->{'store_user_class'}->supports( @_ );
 }
 
+sub auto_create {
+    my( $self, $authinfo, $c ) = @_;
+    my $res = $self->config->{'store_user_class'}->new($self->{'config'}, $c);
+    return $res->auto_create( $authinfo, $c );
+}
+
+sub auto_update {
+    my( $self, $authinfo, $c, $res ) = @_;
+    $res->auto_update( $authinfo, $c );
+    return $res;
+}
+
 __PACKAGE__;
 
 __END__