Skip to content

Commit

Permalink
Added example of changing case of collections
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Dec 11, 2013
1 parent dc318da commit eab903d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions example/LowercaseCollectionsPlugin.js
@@ -0,0 +1,9 @@
var Database = require('iridium');

var Plugin = {
newModel: function(db, db, collection, schema, options) {
this.collection = collection.toLowerCase();
}
};

module.exports = Plugin;

0 comments on commit eab903d

Please sign in to comment.