Last change
on this file since 111 was
102,
checked in by nanardon, 15 years ago
|
- ensure DB is rollback when not using DB anymore
|
File size:
651 bytes
|
Line | |
---|
1 | package LATMOS::Accounts::Web::Model::Accounts; |
---|
2 | |
---|
3 | use strict; |
---|
4 | use warnings; |
---|
5 | use FindBin; |
---|
6 | use lib "$FindBin::Bin/../../LATMOS-Accounts/lib"; |
---|
7 | use base 'Catalyst::Model'; |
---|
8 | use LATMOS::Accounts; |
---|
9 | |
---|
10 | =head1 NAME |
---|
11 | |
---|
12 | LATMOS::Accounts::Web::Model::Accounts - Catalyst Model |
---|
13 | |
---|
14 | =head1 DESCRIPTION |
---|
15 | |
---|
16 | Catalyst Model. |
---|
17 | |
---|
18 | =cut |
---|
19 | |
---|
20 | sub new { |
---|
21 | my ($class) = @_; |
---|
22 | bless({}, $class); |
---|
23 | } |
---|
24 | |
---|
25 | sub db { |
---|
26 | my ($self) = @_; |
---|
27 | LATMOS::Accounts->new(LATMOS::Accounts::Web->config->{config}) |
---|
28 | ->default_base |
---|
29 | } |
---|
30 | |
---|
31 | =head1 AUTHOR |
---|
32 | |
---|
33 | Thauvin Olivier |
---|
34 | |
---|
35 | =head1 LICENSE |
---|
36 | |
---|
37 | This library is free software, you can redistribute it and/or modify |
---|
38 | it under the same terms as Perl itself. |
---|
39 | |
---|
40 | =cut |
---|
41 | |
---|
42 | 1; |
---|
Note: See
TracBrowser
for help on using the repository browser.