projects
/
scpubgit/Q-Branch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
9642099
)
simplify the plugin thing
Matt S Trout [Sun, 6 Oct 2019 01:08:19 +0000 (
01:08
+0000)]
lib/SQL/Abstract.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Abstract.pm
b/lib/SQL/Abstract.pm
index
9d9e204
..
330780a
100644
(file)
--- a/
lib/SQL/Abstract.pm
+++ b/
lib/SQL/Abstract.pm
@@
-344,7
+344,7
@@
sub make_binop_expander {
sub plugin {
my ($self, $plugin, @args) = @_;
unless (ref $plugin) {
- $plugin =~ s/\A\+/${\ref($self)}::Plugin::/;
+ $plugin =~ s/\A\+/${\__PACKAGE__}::Plugin::/;
require(join('/', split '::', $plugin).'.pm');
}
$plugin->apply_to($self, @args);