X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FWithApplicatorDumple.pm;h=107780bacae07ddb966a82db03225e205579bdd0;hb=e80ef6bcfb241e2ab6969e6e8f36259e0bd485c8;hp=cb6f5733a9636dcdde3acc9014df4dab2dd04438;hpb=4f73e4ac36aa022797c6a9dca0afb98f82a0c38c;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/WithApplicatorDumple.pm b/lib/DBIx/Class/DeploymentHandler/WithApplicatorDumple.pm index cb6f573..107780b 100644 --- a/lib/DBIx/Class/DeploymentHandler/WithApplicatorDumple.pm +++ b/lib/DBIx/Class/DeploymentHandler/WithApplicatorDumple.pm @@ -3,6 +3,13 @@ use MooseX::Role::Parameterized; use Class::MOP; use namespace::autoclean; +# this is at least a little ghetto and not super well +# thought out. Take a look at the following at some +# point to clean it all up: +# +# http://search.cpan.org/~jjnapiork/MooseX-Role-BuildInstanceOf-0.06/lib/MooseX/Role/BuildInstanceOf.pm +# http://github.com/rjbs/role-subsystem/blob/master/lib/Role/Subsystem.pm + parameter interface_role => ( isa => 'Str', required => 1, @@ -38,7 +45,7 @@ role { my $meta = Class::MOP::class_of($class_name); has $_->name => %{ $_->clone } - for grep { $_ } map $meta->get_attribute($_), @{ $p->attributes_to_copy }; + for grep { $_ } map $meta->find_attribute_by_name($_), @{ $p->attributes_to_copy }; has $p->delegate_name => ( is => 'ro',