Skip to content

Commit

Permalink
Updated deps and used Mojo::JSON::Any
Browse files Browse the repository at this point in the history
  • Loading branch information
vti committed Jun 15, 2010
1 parent 3fb649d commit 3bbc92f
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Expand Up @@ -4,3 +4,6 @@
[submodule "extlib/mojox-common"]
path = extlib/mojox-common
url = http://github.com/vti/mojox-common.git
[submodule "extlib/mojo-json-any"]
path = extlib/mojo-json-any
url = http://github.com/vti/mojo-json-any.git
2 changes: 1 addition & 1 deletion extlib/mojo
Submodule mojo updated from 7b36f1 to 44d44a
1 change: 1 addition & 0 deletions extlib/mojo-json-any
Submodule mojo-json-any added at c33d91
2 changes: 1 addition & 1 deletion extlib/mojox-common
3 changes: 3 additions & 0 deletions lib/MojoliciousApps.pm
Expand Up @@ -8,6 +8,8 @@ use base 'Mojolicious';
__PACKAGE__->attr('config');
__PACKAGE__->attr('config_file');

use Mojo::JSON::Any;

sub test_mode {
my $self = shift;

Expand Down Expand Up @@ -43,6 +45,7 @@ sub startup {

# CouchDB
$self->plugin(couchdb => $config->{couchdb});
$self->couchdb->json_class('Mojo::JSON::Any');

# Register controller
$self->controller_class('MojoliciousApps::Controller');
Expand Down
1 change: 1 addition & 0 deletions script/mojolicious_apps
Expand Up @@ -7,6 +7,7 @@ use FindBin;

use lib "$FindBin::Bin/../lib";
use lib "$FindBin::Bin/../extlib/mojo/lib";
use lib "$FindBin::Bin/../extlib/mojo-json-any/lib";
use lib "$FindBin::Bin/../extlib/mojox-common/lib";

# Check if Mojo is installed
Expand Down

0 comments on commit 3bbc92f

Please sign in to comment.