Skip Menu |

This queue is for tickets about the Catalyst-Model-DBIC-Schema CPAN distribution.

Report information
The Basics
Id: 88327
Status: open
Priority: 0/
Queue: Catalyst-Model-DBIC-Schema

People
Owner: Nobody in particular
Requestors: mods [...] hank.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.62



Subject: Catalyst::TraitFor::Model::DBIC::Schema::Replicated is missing coerce on pool_type
has pool_type => (is => 'ro', isa => LoadedClass); Needs coerce => 1.
Thanks for the report. This has been fixed as part of the work to remove usage of Class::MOP::load_class() in version 0.62, just uploaded to CPAN.
This broke again in 0.64 here in lib/Catalyst/TraitFor/Model/DBIC/Schema/Replicated.pm here: -has pool_type => (is => 'ro', isa => LoadableClass); +# If you change LoadedClass with LoadableClass I will rip you a new hole, +# it doesn't work exactly the same - JNAP + +has pool_type => (is => 'ro', isa => LoadedClass); Apparently "LoadableClass" doesn't need coerce => 1, but LoadedClass does. That is' pool_type isn't coercing a class name into a loaded class.