projects
/
scpubgit/Commentry.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
comment saving
[scpubgit/Commentry.git]
/
lib
/
App
/
Commentry
/
Comment.pm
diff --git
a/lib/App/Commentry/Comment.pm
b/lib/App/Commentry/Comment.pm
index
3670da8
..
18d2fe2
100644
(file)
--- a/
lib/App/Commentry/Comment.pm
+++ b/
lib/App/Commentry/Comment.pm
@@
-5,4
+5,6
@@
use Moo;
has title => (is => 'ro', required => 1);
has body => (is => 'ro', required => 1);
+sub TO_JSON { +{ %{$_[0]} } }
+
1;