set batchupdate.obj if not already set (thanks @SlappyBag!)

This commit is contained in:
Tyler Renelle 2013-02-07 17:06:22 -05:00
parent 05df606a85
commit 9b91977f59

View file

@ -69,7 +69,9 @@ module.exports.BatchUpdate = BatchUpdate = (model) ->
{
user: user
obj: -> obj
obj: ->
obj ?= user.get()
return obj
startTransaction: ->
# start a batch transaction - nothing between now and @commit() will be set immediately