summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/MooseX/Bread/Board/Meta/Role/Attribute.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MooseX/Bread/Board/Meta/Role/Attribute.pm b/lib/MooseX/Bread/Board/Meta/Role/Attribute.pm
index a7ecb59..90a10e5 100644
--- a/lib/MooseX/Bread/Board/Meta/Role/Attribute.pm
+++ b/lib/MooseX/Bread/Board/Meta/Role/Attribute.pm
@@ -99,9 +99,9 @@ around inline_get => sub {
my $self = shift;
my ($instance) = @_;
- return 'return (' . $self->inline_has($instance) . ')' . "\n"
+ return '((' . $self->inline_has($instance) . ')' . "\n"
. '? (' . $self->$orig($instance) . ')' . "\n"
- . ': (' . $instance . '->get_service(\'' . $self->name . '\')->get);';
+ . ': (' . $instance . '->get_service(\'' . $self->name . '\')->get))';
};
no Moose::Role;