[Catalyst-commits] r7278 - trunk/examples/ExtJS/lib/ExtJS/Model
peterdragon at dev.catalyst.perl.org
peterdragon at dev.catalyst.perl.org
Wed Dec 12 01:35:57 GMT 2007
Author: peterdragon
Date: 2007-12-12 01:35:57 +0000 (Wed, 12 Dec 2007)
New Revision: 7278
Modified:
trunk/examples/ExtJS/lib/ExtJS/Model/ExtJSModel.pm
Log:
Improve comments in ExtJS sample app
Modified: trunk/examples/ExtJS/lib/ExtJS/Model/ExtJSModel.pm
===================================================================
--- trunk/examples/ExtJS/lib/ExtJS/Model/ExtJSModel.pm 2007-12-12 01:32:37 UTC (rev 7277)
+++ trunk/examples/ExtJS/lib/ExtJS/Model/ExtJSModel.pm 2007-12-12 01:35:57 UTC (rev 7278)
@@ -4,6 +4,8 @@
use warnings;
use base 'Catalyst::Model::DBIC::Schema';
+# hard-coded connection commented out because we read it from config files
+
#__PACKAGE__->config(
# schema_class => 'ExtJS::Schema',
# connect_info => [
@@ -20,7 +22,6 @@
eval { $cfg = ExtJS->config; }; # this succeeds if running inside Catalyst
if ($@) # otherwise if called from outside Catalyst try manual load of model configuration
{
- # TODO use File::Path
my $cfgpath1 = Path::Class::File->new( __PACKAGE__->config->{'home'},
'conf', 'extjs_model_local.pl' )->stringify;
my $cfgpath2 = Path::Class::File->new( __PACKAGE__->config->{'home'},
More information about the Catalyst-commits
mailing list