Changeset 32
- Timestamp:
- 03/01/07 21:44:14 (3 years ago)
- Files:
-
- 1 modified
-
veekun/trunk/lib/Vee.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/lib/Vee.pm
r21 r32 53 53 __PACKAGE__->setup; 54 54 55 __PACKAGE__->model('DBIC')->storage->dbh->disconnect; 55 { 56 no strict 'refs'; 57 58 # I find myself doing this a lot and it's a bit cumbersome 59 *{'DBIx::Class::ResultSet::is_empty'} = sub { 60 my ($self) = @_; 61 my $first = $self->first; 62 $self->reset; 63 return not $first; 64 }; 65 } 56 66 57 67 =head1 METHODS … … 158 168 159 169 sub vee_stop { 160 my ($self, $msg) = @_;170 my $self = shift; 161 171 my $s = $self->stash; 162 172 my @msgs = $self->_final_solution(@_);
