Changeset 186

Show
Ignore:
Timestamp:
05/29/07 20:48:48 (3 years ago)
Author:
eevee
Message:

Fixed: Vee::Dex was not being initialized early enough, as some of the startup search code wanted its variables. initialize() is now called in Vee::M::DBIC::new.

Location:
veekun/trunk/lib
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/lib/Vee.pm

    r179 r186  
    5454__PACKAGE__->setup; 
    5555 
    56 Vee::Dex::initialize( __PACKAGE__->model('DBIC') ); 
    57  
    5856{ 
    5957    no strict 'refs'; 
  • veekun/trunk/lib/Vee/Dex.pm

    r183 r186  
    277277} 
    278278 
    279  
    280  
    281279################################################################################ 
    282280# FUNCTIONS 
  • veekun/trunk/lib/Vee/Form.pm

    r109 r186  
    146146         
    147147        if (!ref $attr->{options}[0]) { 
    148             $_ = [ $_ => $_ ] for @{ $attr->{options} }; 
     148            $attr->{options} = [ 
     149                map {[ $_ => $_ ]} @{ $attr->{options} } 
     150            ]; 
    149151        } 
    150152    } 
  • veekun/trunk/lib/Vee/Model/DBIC.pm

    r3 r186  
    22 
    33use strict; 
     4use warnings; 
    45use base 'Catalyst::Model::DBIC::Schema'; 
     6 
     7use Vee::Dex; 
     8 
     9sub new { 
     10    my $self = shift->NEXT::new(@_); 
     11 
     12    Vee::Dex::initialize( $self ); 
     13 
     14    return $self; 
     15} 
    516 
    617=head1 NAME