Skip to content

Commit

Permalink
Expose settings and properties on model
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Dec 13, 2013
1 parent 0643be7 commit 9c6718a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/schema.js
Expand Up @@ -220,6 +220,8 @@ Schema.prototype.define = function defineClass(className, properties, settings)
};

hiddenProperty(NewClass, 'schema', schema);
hiddenProperty(NewClass, 'settings', settings);
hiddenProperty(NewClass, 'properties', properties);
hiddenProperty(NewClass, 'modelName', className);
hiddenProperty(NewClass, 'tableName', settings.table || className);
hiddenProperty(NewClass, 'relations', {});
Expand Down

0 comments on commit 9c6718a

Please sign in to comment.