Skip to content

Commit

Permalink
Updates to the UserModel example
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Jan 27, 2014
1 parent a904b3a commit 665ad3b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions example/UserModel.js
@@ -1,21 +1,18 @@
/// <reference path="../nodelib/node.js"/>
/// <reference path="../lib/Instance.js"/>
/// <reference path="../lib/Model.js"/>
/// <reference path="../lib/Database.js"/>
/// <reference path="../index.js"/>

var _ = require('lodash');
var Database = require('iridium');
var Database = require('../index.js');
var Model = Database.Model;
var Concoction = require('concoction');

(require.modules || {}).User = module.exports = function (db) {
module.exports = function (db) {
/// <summary>Configure the User model to use the given database</summary>
/// <param name="db" type="Database">The database connection to use</param>
/// <returns type="Model"/>

"use strict";
var database = db;

var options = {
virtuals: {
API: function () {
Expand Down

0 comments on commit 665ad3b

Please sign in to comment.