Permalink
Browse files

move schema name to class config

  • Loading branch information...
1 parent 8861481 commit f6d9cfaded8e51b5c389f7d47459fc21f2cb8546 @bricas bricas committed Apr 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −0 lib/SixteenColors/Model/DB.pm
  2. +0 −1 sixteencolors.conf
@@ -4,6 +4,8 @@ use strict;
use warnings;
use parent 'Catalyst::Model::DBIC::Schema';
+__PACKAGE__->config( schema_class => 'SixteenColors::Schema' );
+
=head1 NAME
SixteenColors::Model::DB - Catalyst Model
View
@@ -1,7 +1,6 @@
name SixteenColors
api_url http://api.sixteencolors.net/v0/
<Model::DB>
- schema_class SixteenColors::Schema
<connect_info>
dsn dbi:SQLite:dbname=__path_to(sixteencolors.db)__
user undef

0 comments on commit f6d9cfa

Please sign in to comment.