Skip Menu |

This queue is for tickets about the CatalystX-ComponentsFromConfig CPAN distribution.

Report information
The Basics
Id: 76161
Status: resolved
Priority: 0/
Queue: CatalystX-ComponentsFromConfig

People
Owner: Nobody in particular
Requestors: nonsolosoft [...] diff.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.0
Fixed in: (no value)



Subject: how to change the configuration file to make it to work with this module?
Hi t0m and dakkar. I've tried to convert one my new application to use this module, after some failures I really ignore how to make this module at work. It seems to assign wrong name to resultset. In the attachment there are details. Thank you in advance, \ferz
Subject: with_CatalystX::FromConfig.txt

Message body is not shown because it is too large.

Thank you for making me notice that the documentation was not clear enough :) ::ModelPlugin did say: Show quoted text
> The default C<base_class> is > C<CatalystX::ComponentsFromConfig::ModelAdaptor>, but you can > specify whatever adaptor you want. Of course, you have to make sure > that the model-specific configuration block is in the format that > your adaptor expects.
But I now realise that it's a bit too obscure. I've added this: Show quoted text
> A useful example is when you want to use L<Catalyst::Model::DBIC::Schema>: > > <Model::DB> > base_class Catalyst::Model::DBIC::Schema > schema_class My::Schema > <connect_info> > dsn dbi:SQLite:dbname=/tmp/whatever.db > </connect_info> > </Model::DB> > > Note that, since we're not using > L<CatalystX::ComponentsFromConfig::ModelAdaptor>, the way you pass the > various parameters is different than what is shown at the top.
I'm releasing version 1.001 with this change.
CatalystX-ComponentsFromConfig-1.001 is on its way to CPAN mirrors. Also, https://github.com/dakkar/CatalystX-StompSampleApps/blob/master/app2.conf may be a useful example