From 5fdc7076b74016ee679a0613da9073346dbd6556 Mon Sep 17 00:00:00 2001 From: Ritchie Date: Wed, 22 May 2013 20:41:56 -0700 Subject: [PATCH] Alias define and defineModel --- lib/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/application.js b/lib/application.js index e9420d35..e2d61b10 100644 --- a/lib/application.js +++ b/lib/application.js @@ -39,7 +39,7 @@ app.models = {}; * @param options {Object} * @returns {Model} */ - +app.defineModel = app.define = function (name, options) { options = options || {}; options.name = options.name || name;