fixed typo
John Napiorkowski [Tue, 5 Oct 2010 18:17:04 +0000 (14:17 -0400)]
lib/CatalystX/Declare/Controller/Meta/TypeConstraintMapping.pm

index f1fc653..9c8119c 100644 (file)
@@ -8,19 +8,19 @@ role CatalystX::Declare::Controller::Meta::TypeConstraintMapping {
     use aliased 'MooseX::Method::Signatures::Meta::Method', 'MethodWithSignature';
 
     has method_type_constraint_map => (
-        metaclass   => 'Collection::Hash',
+        traits    => [ 'Hash' ],
         is          => 'ro',
         isa         => HashRef[Object],
         required    => 1,
         lazy_build  => 1,
         handles    => {
             'get_method_type_constraint' => 'get',
-            'set_method_type_constraint' => 'set,
+            'set_method_type_constraint' => 'set',
         },
     );
 
     has method_named_param_map => (
-        metaclass   => 'Collection::Hash',
+        traits    => [ 'Hash' ],
         is          => 'ro',
         isa         => HashRef[ArrayRef[Str]],
         required    => 1,
@@ -32,7 +32,7 @@ role CatalystX::Declare::Controller::Meta::TypeConstraintMapping {
     );
 
     has method_named_type_constraint_map => (
-        metaclass   => 'Collection::Hash',
+        traits    => [ 'Hash' ],
         is          => 'ro',
         isa         => HashRef[HashRef[Object]],
         required    => 1,