Minor touch-ups

This commit is contained in:
Fabien Franzen 2014-08-05 16:26:34 +02:00
parent 1a4e8863ef
commit f1f692a8a5
3 changed files with 4 additions and 4 deletions

View File

@ -22,9 +22,9 @@ exports.apply = function applyPlugin(name, modelClass, options) {
var definePlugin = exports.define = function definePlugin(name, fn) {
if (typeof fn === 'function') {
if (registry[name]) {
debug('Overwriting plugin: %s', name);
debug('Duplicate plugin: %s', name);
} else {
debug('Defined plugin: %s', name);
debug('Defining plugin: %s', name);
}
registry[name] = fn;
} else {

View File

@ -20,4 +20,4 @@ module.exports = function timestamps(Model, options) {
if (creation) data.createdAt = data.updatedAt;
};
};
};

View File

@ -41,4 +41,4 @@ describe('Model class', function () {
});
});
});
});