Browse Source

collection names are lowercase!

Joel Berger 11 years ago
parent
commit
d7596809ed
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mojolicious/app.pl

+ 2 - 2
mojolicious/app.pl

@@ -20,8 +20,8 @@ app->config->{hypnotoad}{workers} = app->config->{workers};
 
 helper mango   => sub { state $mango = Mango->new('mongodb://'. shift->config->{database_host}) };
 helper db      => sub { state $db = shift->mango->db('hello_world') };
-helper world   => sub { shift->db->collection('World') };
-helper fortune => sub { shift->db->collection('Fortune') };
+helper world   => sub { shift->db->collection('world') };
+helper fortune => sub { shift->db->collection('fortune') };
 
 # JSON::XS renderer