Fix model/view/controller methods to handle stringifiable objects
authorMatt S Trout <mst@shadowcat.co.uk>
Tue, 14 Aug 2012 17:43:13 +0000 (17:43 +0000)
committerMatt S Trout <mst@shadowcat.co.uk>
Tue, 14 Aug 2012 17:43:13 +0000 (17:43 +0000)
commit4995a5cebbc06c813c20daabc8d248247f33cb37
tree2fbc1de759945e920ae127378290b827c6a2be9f
parentbf590d36b554c02f9af89d8f5677be23297fbaf3
Fix model/view/controller methods to handle stringifiable objects

Previously, we tested ref() and assumed if that was true that we'd been
supplied with a regexp; by switching to using Safe::Isa to check for

  $thing->$_isa('Regexp')

a stringifiable object will still get handled correctly. This is necessary
when using string overloading tools such as i18n.pm or HTML::String.
Changes
Makefile.PL
lib/Catalyst.pm
t/aggregate/unit_core_mvc.t