Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields authored Aug 27, 2023
1 parent 774baf8 commit 37fdeba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/mongoid/contextual/mongo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,7 @@ def load_async
# @return [ true | false ] If the update succeeded.
def update_documents(attributes, method = :update_one, opts = {})
return false unless attributes

attributes = Hash[attributes.map { |k, v| [klass.database_field_name(k.to_s), v] }]
view.send(method, prepare_atomic_updates(klass, attributes), opts)
end
Expand Down

0 comments on commit 37fdeba

Please sign in to comment.