[libdancer-plugin-dbic-perl] 02/22: Call own schema function

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 f639de7050d32cf2743cb63f1b948b671ea86f6e
Author: Ben Hutton <relequestual at gmail.com>
Date:   Thu Nov 5 10:02:11 2015 +0000

    Call own schema function
    
    Fixes https://github.com/ironcamel/Dancer-Plugin-DBIC/issues/19
---
 lib/Dancer/Plugin/DBIC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Dancer/Plugin/DBIC.pm b/lib/Dancer/Plugin/DBIC.pm
index cdee8ee..dcec2d8 100644
--- a/lib/Dancer/Plugin/DBIC.pm
+++ b/lib/Dancer/Plugin/DBIC.pm
@@ -17,7 +17,7 @@ sub _schema {
 
 sub _rset {
     my ($self, $rset_name) = plugin_args(@_);
-    return DBICx::Sugar::schema->resultset($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