Skip to content

Commit

Permalink
A little more explicit in Document#update with a single doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Jun 5, 2009
1 parent 95479e1 commit 41b8ba0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mongo_mapper/document.rb
Expand Up @@ -52,7 +52,8 @@ def update(*args)
if updating_multiple
update_multiple(args[0])
else
update_single(args[0], args[1])
id, attributes = args
update_single(id, attributes)
end
end

Expand Down

0 comments on commit 41b8ba0

Please sign in to comment.