From 3cab815f8bb574d3c2bf9e4f9d627a698674c000 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 17 Feb 2011 21:19:47 -0600 Subject: factor some stuff out into a role --- lib/Narwhal/Component/Wiki/Edit.pm | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'lib/Narwhal/Component/Wiki/Edit.pm') diff --git a/lib/Narwhal/Component/Wiki/Edit.pm b/lib/Narwhal/Component/Wiki/Edit.pm index fabeb0c..d05e7a0 100644 --- a/lib/Narwhal/Component/Wiki/Edit.pm +++ b/lib/Narwhal/Component/Wiki/Edit.pm @@ -1,29 +1,7 @@ package Narwhal::Component::Wiki::Edit; use Moose; -has kioku => ( - isa => 'KiokuX::Model', - required => 1, - handles => 'KiokuDB::Role::API', -); - -has tt => ( - isa => 'Template', - required => 1, - handles => ['process'], -); - -has scope => ( - is => 'ro', - isa => 'KiokuDB::LiveObjects::Scope', - lazy => 1, - default => sub { shift->new_scope }, -); - -sub BUILD { - my $self = shift; - $self->scope; -} +with 'Narwhal::Component::Role::Wiki'; sub get { my $self = shift; -- cgit v1.2.3-54-g00ecf