fixed regression with action_role namespaces being lost (created last release) and...
[catagits/CatalystX-Declare.git] / t / lib / TestApp / ActionRole / hasActionParams_AppNS.pm
diff --git a/t/lib/TestApp/ActionRole/hasActionParams_AppNS.pm b/t/lib/TestApp/ActionRole/hasActionParams_AppNS.pm
new file mode 100644 (file)
index 0000000..5b9ceae
--- /dev/null
@@ -0,0 +1,12 @@
+use CatalystX::Declare;
+namespace TestApp;
+role ::ActionRole::hasActionParams_AppNS {
+    has [qw/p1 p2/] => (is=>'ro', lazy_build=>1);
+    method _build_p1 {
+        join ',', @{$self->attributes->{p1}};
+    }
+    method _build_p2 {
+        join ',', @{$self->attributes->{p2}};
+    }
+}
+