fixup to txn_do to allow use as a classmethod
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Schema.pm
index 8c7eac1..7926e92 100644 (file)
@@ -555,8 +555,6 @@ context and it will behave as expected.
 sub txn_do {
   my ($self, $coderef, @args) = @_;
 
-  ref $self or $self->throw_exception
-    ('Cannot execute txn_do as a class method');
   ref $coderef eq 'CODE' or $self->throw_exception
     ('$coderef must be a CODE reference');