File: MightHave.pm

package info (click to toggle)
libdbix-class-perl 0.08010-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,052 kB
  • ctags: 1,064
  • sloc: perl: 10,536; sql: 225; makefile: 45
file content (17 lines) | stat: -rwxr-xr-x 403 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package # hide from PAUSE
    DBIx::Class::CDBICompat::MightHave;

use strict;
use warnings;

sub might_have {
  my ($class, $rel, $f_class, @columns) = @_;
  if (ref $columns[0] || !defined $columns[0]) {
    return $class->next::method($rel, $f_class, @columns);
  } else {
    return $class->next::method($rel, $f_class, undef,
                                     { proxy => \@columns });
  }
}

1;