source: LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/Accounts.pm @ 111

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 
1package LATMOS::Accounts::Web::Model::Accounts;
2
3use strict;
4use warnings;
5use FindBin;
6use lib "$FindBin::Bin/../../LATMOS-Accounts/lib";
7use base 'Catalyst::Model';
8use LATMOS::Accounts;
9
10=head1 NAME
11
12LATMOS::Accounts::Web::Model::Accounts - Catalyst Model
13
14=head1 DESCRIPTION
15
16Catalyst Model.
17
18=cut
19
20sub new {
21    my ($class) = @_;
22    bless({}, $class);
23}
24
25sub db {
26    my ($self) = @_;
27    LATMOS::Accounts->new(LATMOS::Accounts::Web->config->{config})
28        ->default_base
29}
30
31=head1 AUTHOR
32
33Thauvin Olivier
34
35=head1 LICENSE
36
37This library is free software, you can redistribute it and/or modify
38it under the same terms as Perl itself.
39
40=cut
41
421;
Note: See TracBrowser for help on using the repository browser.