On 5/23/07, Matt S Trout <[EMAIL PROTECTED]> wrote:
Maybe something more like
setup_components:
Model::ModelName:
class: Catalyst::Model::DBIC::Schema
instantiate:
schema_class: My::Schema
connect_info: ....
?
I would change it to:
setup_components:
ModelName:
type: model
class: Catalyst::Model::DBIC::Schema
instantiate:
schema_class: My::Schema
connect_info: ....
to get rid of the Model => model mapping.
I not sure how this would work with the old style of config without
the setup_components subdir (using the Model::ModelName directly in
the config hash):
MyApp->config(
name => 'MyApp',
root => MyApp->path_to('root');,
'Model::DBIC::Schema' => {
but I understand that the setup_components way is now the recommended one.
I attach my attempt at a test (for now only the 'new' method call is tested).
--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
loadtest.t
Description: Troff document
_______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
