From 45ae37b938059f7b73a720f413e72a5f96d85a24 Mon Sep 17 00:00:00 2001 From: Zakariyya Mughal Date: Sat, 21 Oct 2023 14:59:38 -0400 Subject: [PATCH] Remove lazy from user attribute Otherwise `Moose` will say: > You cannot have a lazy attribute (user) without specifying a default > value for it --- lib/RDF/LinkedData/RWHypermedia.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RDF/LinkedData/RWHypermedia.pm b/lib/RDF/LinkedData/RWHypermedia.pm index 7dc5c98..e678df9 100644 --- a/lib/RDF/LinkedData/RWHypermedia.pm +++ b/lib/RDF/LinkedData/RWHypermedia.pm @@ -354,7 +354,7 @@ around '_content' => sub { }; -has user => ( is => 'rw', isa => Str, lazy => 1, +has user => ( is => 'rw', isa => Str, predicate => 'is_logged_in', clearer => 'log_out' );