9 |
|
|
10 |
sub dsn { 'DBI:Pg:dbname=room-reservation' } |
sub dsn { 'DBI:Pg:dbname=room-reservation' } |
11 |
|
|
12 |
|
=head1 DEPLOY |
13 |
|
|
14 |
|
createdb --encoding=utf-8 room-reservation |
15 |
|
|
16 |
|
perl -Ilib -MFrey::Class::Schematize \ |
17 |
|
-e 'print Frey::Class::Schematize->new( class => "App::RoomReservation::Reservation" )->create_table,$/;' \ |
18 |
|
| psql room-reservation |
19 |
|
|
20 |
|
=cut |
21 |
|
|
22 |
our $dbh; |
our $dbh; |
23 |
sub dbh { |
sub dbh { |
24 |
my ($self) = @_; |
my ($self) = @_; |
38 |
my $url = $self->url_for( 'Reservation/create_as_markup' ); |
my $url = $self->url_for( 'Reservation/create_as_markup' ); |
39 |
|
|
40 |
return |
return |
41 |
App::RoomReservation::Room->new->room_markup |
App::RoomReservation::Room->new->room_as_markup |
42 |
. qq|<a target="App::RoomReservation::Reservation" href="$url">seat reservation</a>| |
. qq|<a target="App::RoomReservation::Reservation" href="$url">seat reservation</a>| |
43 |
; |
; |
44 |
} |
} |