Skip to content
Browse files

String to symbol.

  • Loading branch information...
1 parent 697a449 commit 4572804608706488430ee22fa235ad22c058ea96 @jnunemaker committed May 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/toy/mongo/partial_updating.rb
View
2 lib/toy/mongo/partial_updating.rb
@@ -39,7 +39,7 @@ def persist
def atomic_update(update, opts={})
options = {}
- criteria = {'_id' => id}
+ criteria = {:_id => id}
criteria.update(opts[:criteria]) if opts[:criteria]
options[:safe] = opts.key?(:safe) ? opts[:safe] : adapter.options[:safe]

0 comments on commit 4572804

Please sign in to comment.
Something went wrong with that request. Please try again.