requires 'Class::C3::Componentised' => '1.0008';
requires 'Class::Inspector' => '1.27';
requires 'Class::Unload' => '0.07';
+requires 'curry' => '1.000000',
requires 'Data::Dump' => '1.06';
requires 'DBIx::Class' => '0.08127';
requires 'Hash::Merge' => '0.12';
use DBIx::Class::Schema::Loader::Utils 'array_eq';
use Try::Tiny;
use Hash::Merge 'merge';
+use curry;
use namespace::clean;
# Always remember to do all digits for the version even if they're 0
}
elsif($opt eq 'naming') {
no strict 'refs';
- *{"${cpkg}::naming"} = sub { $self->naming(@_) };
+ *{"${cpkg}::naming"} = $self->curry::naming;
}
elsif($opt eq 'use_namespaces') {
no strict 'refs';
- *{"${cpkg}::use_namespaces"} = sub { $self->use_namespaces(@_) };
+ *{"${cpkg}::use_namespaces"} = $self->curry::use_namespaces,
}
}
}
use Encode qw/encode decode/;
use List::Util qw/all any none/;
use File::Temp 'tempfile';
+use curry;
use namespace::clean;
our $VERSION = '0.07047';
my $accessor = $self->_run_user_map(
$self->col_accessor_map,
- sub { $self->_default_column_accessor_name( shift ) },
+ $self->curry::_default_column_accessor_name,
$column_name,
$column_context_info,
);
$self->_run_user_map(
$self->moniker_map,
- sub { $self->_default_table2moniker( shift ) },
+ $self->curry::_default_table2moniker,
$table
);
}
use DBIx::Class::Schema::Loader;
use Class::Unload;
use File::Path 'rmtree';
+use curry;
use DBI;
use File::Find 'find';
use Class::Unload ();
col_collision_map => { '^(can)\z' => 'caught_collision_%s' },
rel_collision_map => { '^(set_primary_key)\z' => 'caught_rel_collision_%s' },
relationship_attrs => { many_to_many => { order_by => 'me.id' } },
- col_accessor_map => sub { $self->test_col_accessor_map(@_) },
+ col_accessor_map => $self->curry::weak::test_col_accessor_map,
result_components_map => { LoaderTest2X => 'TestComponentForMap', LoaderTest1 => '+TestComponentForMapFQN' },
uniq_to_primary => 1,
%{ $self->{loader_options} || {} },