From 22a154f7b38c78f6e86f3dc2335dd0b8c4d08634 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 2 Jun 2011 10:19:07 -0500 Subject: fix the type constraint for literal_value --- lib/Bread/Board/Declare/Meta/Role/Attribute.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Bread/Board/Declare/Meta/Role/Attribute.pm b/lib/Bread/Board/Declare/Meta/Role/Attribute.pm index 895cbfa..aa988ff 100644 --- a/lib/Bread/Board/Declare/Meta/Role/Attribute.pm +++ b/lib/Bread/Board/Declare/Meta/Role/Attribute.pm @@ -51,7 +51,7 @@ the parameter that should be passed to C is C. # has_value is already a method has literal_value => ( is => 'ro', - isa => 'Str|CodeRef', + isa => 'Value', init_arg => 'value', predicate => 'has_literal_value', ); -- cgit v1.2.3