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

Commit 72d80934 by Jan Aagaard Meier

added options to specify whitelist when creating

1 parent ba9e5e46
Showing with 4 additions and 4 deletions
...@@ -98,8 +98,8 @@ module.exports = (function() { ...@@ -98,8 +98,8 @@ module.exports = (function() {
var updatedAtAttr = this.__options.underscored ? 'updated_at' : 'updatedAt' var updatedAtAttr = this.__options.underscored ? 'updated_at' : 'updatedAt'
if(this.__options.timestamps && this.hasOwnProperty(updatedAtAttr)) { if(this.__options.timestamps && this.hasOwnProperty(updatedAtAttr)) {
var now = new Date() var now = new Date()
this[updatedAtAttr] = now this[updatedAtAttr] = now
values[updatedAtAttr] = now values[updatedAtAttr] = now
} }
......
...@@ -425,8 +425,8 @@ describe('DAO', function() { ...@@ -425,8 +425,8 @@ describe('DAO', function() {
Helpers.async(function(done) { Helpers.async(function(done) {
setTimeout(function() { setTimeout(function() {
user.save().success(function() { user.save().success(function() {
expect(updatedAt.getTime()).toBeLessThan(user.updatedAt.getTime()) expect(updatedAt.getTime()).toBeLessThan(user.updatedAt.getTime())
done() done()
}) })
}, 10) }, 10)
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!