module Mongo::Operation::WriteConcernSupported

Custom behavior for operations that support write concern.

@since 2.5.2 @api private

Private Instance Methods

add_write_concern!(sel, connection) click to toggle source
# File lib/mongo/operation/shared/write_concern_supported.rb, line 35
def add_write_concern!(sel, connection)
  if write_concern && write_concern_supported?(connection)
    sel[:writeConcern] = write_concern.options
  end
  sel
end
command(connection) click to toggle source
Calls superclass method
# File lib/mongo/operation/shared/write_concern_supported.rb, line 31
def command(connection)
  add_write_concern!(super, connection)
end
write_concern_supported?(connection) click to toggle source
# File lib/mongo/operation/shared/write_concern_supported.rb, line 29
def write_concern_supported?(connection); true; end