projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
fixup to txn_do to allow use as a classmethod
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
Schema.pm
diff --git
a/lib/DBIx/Class/Schema.pm
b/lib/DBIx/Class/Schema.pm
index
8c7eac1
..
7926e92
100644
(file)
--- a/
lib/DBIx/Class/Schema.pm
+++ b/
lib/DBIx/Class/Schema.pm
@@
-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');