Skip to content

Instantly share code, notes, and snippets.

@nothingmuch
Created May 6, 2009 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nothingmuch/107574 to your computer and use it in GitHub Desktop.
Save nothingmuch/107574 to your computer and use it in GitHub Desktop.
package Kitten::Friend::Model::KiokuDB;
use Moose;
extends qw(KiokuX::Model);
sub insert_kitten {
my ( $self, $kitten ) = @_;
my $id = $self->txn_do(sub {
$self->store($kitten);
});
return $id;
}
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment