From 5f8e55a79913581e5203a2ef0d4722b16091689b Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 10 Oct 2011 12:33:00 -0500 Subject: there is always an associated service now --- lib/Bread/Board/Declare/Meta/Role/Attribute/Service.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/Bread/Board/Declare/Meta/Role/Attribute/Service.pm') diff --git a/lib/Bread/Board/Declare/Meta/Role/Attribute/Service.pm b/lib/Bread/Board/Declare/Meta/Role/Attribute/Service.pm index 1836c8f..795ae53 100644 --- a/lib/Bread/Board/Declare/Meta/Role/Attribute/Service.pm +++ b/lib/Bread/Board/Declare/Meta/Role/Attribute/Service.pm @@ -124,9 +124,8 @@ The service object that is associated with this attribute. =cut has associated_service => ( - is => 'rw', - does => 'Bread::Board::Service', - predicate => 'has_associated_service', + is => 'rw', + does => 'Bread::Board::Service', ); after attach_to_class => sub { @@ -186,7 +185,7 @@ after attach_to_class => sub { ); } - $self->associated_service($service) if $service; + $self->associated_service($service); }; after _process_options => sub { -- cgit v1.2.3-54-g00ecf