不要怂,就是干,撸起袖子干!

Commit 10130b31 by Mick Hansen

Merge pull request #5070 from osagie/patch-1

Excluding attributes with scope.
2 parents 35c4f0e4 999a97ec
Showing with 1 additions and 1 deletions
...@@ -2588,7 +2588,7 @@ Model.prototype.$getDefaultTimestamp = function(attr) { ...@@ -2588,7 +2588,7 @@ Model.prototype.$getDefaultTimestamp = function(attr) {
Model.prototype.$expandAttributes = function (options) { Model.prototype.$expandAttributes = function (options) {
if (_.isPlainObject(options.attributes)) { if (_.isPlainObject(options.attributes)) {
var attributes = Object.keys(this.tableAttributes); var attributes = Object.keys(this.rawAttributes);
if (options.attributes.exclude) { if (options.attributes.exclude) {
attributes = attributes.filter(function (elem) { attributes = attributes.filter(function (elem) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!