line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package CatalystX::Resource::TraitFor::Controller::Resource::Show; |
2
|
|
|
|
|
|
|
$CatalystX::Resource::TraitFor::Controller::Resource::Show::VERSION = '0.03'; |
3
|
9
|
|
|
9
|
|
15526
|
use MooseX::MethodAttributes::Role; |
|
9
|
|
|
|
|
25
|
|
|
9
|
|
|
|
|
141
|
|
4
|
9
|
|
|
9
|
|
87467
|
use namespace::autoclean; |
|
9
|
|
|
|
|
25
|
|
|
9
|
|
|
|
|
80
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: a show action for your resource |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub show : Method('GET') Chained('base_with_id') PathPart('show') Args(0) { |
10
|
15
|
|
|
15
|
1
|
6859
|
my ( $self, $c ) = @_; |
11
|
9
|
|
|
9
|
|
1297
|
} |
|
9
|
|
|
|
|
29
|
|
|
9
|
|
|
|
|
79
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
1; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
__END__ |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=pod |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=encoding UTF-8 |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
CatalystX::Resource::TraitFor::Controller::Resource::Show - a show action for your resource |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 VERSION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
version 0.03 |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 ACTIONS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 show |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
display the resource specified by its id, accessible as $c->stash->{resource} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 AUTHOR |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
David Schmidt <davewood@cpan.org> |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This software is copyright (c) 2011 by David Schmidt. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
44
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |