Bring back resolve_condition deleted in 03f6d1f7
Peter Rabbitson [Fri, 25 Jul 2014 14:17:44 +0000 (16:17 +0200)]
It doesn't cost anything, and the compat shim turned out to be good enough
to make this worthwhile. Also apparently CPAN is using it still FML:
http://grep.cpan.me/?q=->_*resolve_condition

lib/DBIx/Class/ResultSource.pm

index 33a0ca4..c03c8da 100644 (file)
@@ -1675,6 +1675,11 @@ sub _pk_depends_on {
   return 1;
 }
 
+sub resolve_condition {
+  carp 'resolve_condition is a private method, stop calling it';
+  shift->_resolve_condition (@_);
+}
+
 sub _resolve_condition {
 #  carp_unique sprintf
 #    '_resolve_condition is a private method, and moreover is about to go '