Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emaciated model and controller for summaries
- Loading branch information
Kieren Diment
committed
Feb 11, 2010
1 parent
aaa4010
commit 898018c
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package Text::TranscriptMiner::Web::Controller::Summaries; | ||
|
||
use strict; | ||
use warnings; | ||
use parent 'Catalyst::Controller'; | ||
|
||
sub index :Path :Args(0) { | ||
my ( $self, $c ) = @_; | ||
$c->forward('get_menu'); | ||
} | ||
|
||
sub default :Path { | ||
my ( $self, $c ) = @_; | ||
$c->response->body( 'Page not found' ); | ||
$c->response->status(404); | ||
} | ||
|
||
sub end : ActionClass('RenderView') {} | ||
|
||
sub get_menu :Private { | ||
my ($self, $c) = @_; | ||
my $cmp = $c->model('Summary')->new( | ||
{ | ||
start_dir => $c->config->{analysis_dir}, | ||
cmp_name => ['pre_implementation_first_cut', 'summary'] | ||
}); | ||
$c->stash(comparisons => $cmp); | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package Text::TranscriptMiner::Web::Model::Summary; | ||
use Moose; | ||
BEGIN {extends 'Catalyst::Model'; | ||
extends 'Text::TranscriptMiner::Document::Comparisons'; | ||
}; | ||
1; |