Changeset 53


Ignore:
Timestamp:
03/17/09 02:51:23 (15 years ago)
Author:
nanardon
Message:
  • rollback database before doing anything
Location:
trunk/lib/Vote/Controller
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Vote/Controller/Admin.pm

    r49 r53  
    2121 
    2222=cut 
     23 
     24sub begin : Private { 
     25    my ( $self, $c ) = @_; 
     26    $c->model('Vote')->db->rollback; 
     27} 
    2328 
    2429sub index : Private { 
  • trunk/lib/Vote/Controller/Ballot.pm

    r49 r53  
    2121 
    2222=cut 
     23 
     24sub begin : Private { 
     25    my ( $self, $c ) = @_; 
     26    $c->model('Vote')->db->rollback; 
     27} 
    2328 
    2429sub index : Private { 
  • trunk/lib/Vote/Controller/Newpoll.pm

    r49 r53  
    2121 
    2222=cut 
     23 
     24sub begin : Private { 
     25    my ( $self, $c ) = @_; 
     26    $c->model('Vote')->db->rollback; 
     27} 
    2328 
    2429sub index : Private { 
  • trunk/lib/Vote/Controller/Root.pm

    r47 r53  
    2727=cut 
    2828 
     29sub begin : Private { 
     30    my ( $self, $c ) = @_; 
     31    $c->model('Vote')->db->rollback; 
     32} 
     33 
    2934sub default : Private { 
    3035    my ( $self, $c ) = @_; 
  • trunk/lib/Vote/Controller/Vote.pm

    r49 r53  
    2222=cut 
    2323 
     24sub begin : Private { 
     25    my ( $self, $c ) = @_; 
     26    $c->model('Vote')->db->rollback; 
     27} 
     28 
    2429sub index : Private { 
    2530    my ( $self, $c ) = @_; 
    2631 
    27     $c->response->body('Matched Vote::Controller::Vote in Vote.'); 
     32    $c->redirect($c->uri_for('/')); 
    2833} 
    2934 
Note: See TracChangeset for help on using the changeset viewer.