[libdancer-plugin-dbic-perl] 04/22: removed plugin_args call

Jonas Smedegaard dr at jones.dk
Wed Dec 6 01:17:35 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.2104-1
in repository libdancer-plugin-dbic-perl.

commit 95416a379f6fc8a4f483e62be09fc7ba4e2766ee
Author: Naveed Massjouni <naveed at vt.edu>
Date:   Mon Nov 9 06:35:24 2015 -0500

    removed plugin_args call
---
 lib/Dancer/Plugin/DBIC.pm | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/Dancer/Plugin/DBIC.pm b/lib/Dancer/Plugin/DBIC.pm
index dcec2d8..754018a 100644
--- a/lib/Dancer/Plugin/DBIC.pm
+++ b/lib/Dancer/Plugin/DBIC.pm
@@ -6,18 +6,18 @@ use strict;
 use warnings;
 use utf8;
 use Dancer::Plugin;
-use Module::Load;
 use DBICx::Sugar;
+use Module::Load;
 
 sub _schema {
-    my ($self, $name) = plugin_args(@_);
+    my ($name) = @_;
     DBICx::Sugar::config( plugin_setting );
     return DBICx::Sugar::schema($name);
 };
 
 sub _rset {
-    my ($self, $rset_name) = plugin_args(@_);
-    return schema()->resultset($rset_name);
+    my ($rset_name) = @_;
+    return _schema()->resultset($rset_name);
 }
 
 register schema    => \&_schema;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdancer-plugin-dbic-perl.git



More information about the Pkg-perl-cvs-commits mailing list