diff --git a/example/LowercaseCollectionsPlugin.js b/example/LowercaseCollectionsPlugin.js new file mode 100644 index 0000000..df8b598 --- /dev/null +++ b/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; \ No newline at end of file