Skip to content

Commit

Permalink
Merge pull request Automattic#1903 from tstrimple/patch-2
Browse files Browse the repository at this point in the history
Added get / set to reserved path list.
  • Loading branch information
aheckmann committed Feb 22, 2014
2 parents 5eb1a35 + e25a5fe commit fbcaa71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Schema.prototype.add = function add (obj, prefix) {
*
* Keys in this object are names that are rejected in schema declarations b/c they conflict with mongoose functionality. Using these key name will throw an error.
*
* on, emit, _events, db, init, isNew, errors, schema, options, modelName, collection, _pres, _posts, toObject
* on, emit, _events, db, get, set, init, isNew, errors, schema, options, modelName, collection, _pres, _posts, toObject
*
* _NOTE:_ Use of these terms as method names is permitted, but play at your own risk, as they may be existing mongoose document methods you are stomping on.
*
Expand All @@ -236,6 +236,8 @@ Schema.reserved = Object.create(null);
var reserved = Schema.reserved;
reserved.on =
reserved.db =
reserved.set =
reserved.get =
reserved.init =
reserved.isNew =
reserved.errors =
Expand Down

0 comments on commit fbcaa71

Please sign in to comment.