Add internal assertion guard for some indirect calls (for now only create/new)
authorPeter Rabbitson <ribasushi@cpan.org>
Fri, 18 Jul 2014 16:11:15 +0000 (18:11 +0200)
committerPeter Rabbitson <ribasushi@cpan.org>
Mon, 21 Jul 2014 10:47:59 +0000 (12:47 +0200)
commit77c3a5dca478801246ff728f80a0c5013e57f4a2
tree4cfcd0111b559f53c63186093dea24c36643d2fb
parent209a20649200c6885697ced98d8499022c2e9eeb
Add internal assertion guard for some indirect calls (for now only create/new)

Modeled on the idea of a9da9b6a, this one blows up when a public proxy
is called insted of the equivalent public chan of methods

This particular set of changes to create() and new() is solely an
optimisation (unlike a subsequent commit to ::ResultSourceProxy)
lib/DBIx/Class/Admin.pm
lib/DBIx/Class/ResultSet.pm
lib/DBIx/Class/Schema/Versioned.pm
lib/DBIx/Class/_Util.pm