Permalink
Browse files

fixed issue #78, rename _lazy_get_data to generate_column_accessor

  • Loading branch information...
1 parent 47c5760 commit 170649866b87cc9f14eac5ef601d73c03a1f3886 @yappo committed Oct 2, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Teng/Row.pm
  2. +1 −1 lib/Teng/Schema/Table.pm
View
@@ -19,7 +19,7 @@ sub new {
$self;
}
-sub _lazy_get_data {
+sub generate_column_accessor {
my ($x, $col) = @_;
return sub {
View
@@ -32,7 +32,7 @@ sub new {
for my $col (@{$self->columns}) {
no strict 'refs';
unless ($row_class->can($col)) {
- *{"$row_class\::$col"} = $row_class->_lazy_get_data($col);
+ *{"$row_class\::$col"} = $row_class->generate_column_accessor($col);
}
}
$self->row_class($row_class);

0 comments on commit 1706498

Please sign in to comment.