module Mongo::Operation::WriteConcernSupported
Custom behavior for operations that support write concern.
@since 2.5.2 @api private
Private Instance Methods
Source
# File lib/mongo/operation/shared/write_concern_supported.rb, line 32 def add_write_concern!(sel, connection) if write_concern && write_concern_supported?(connection) sel[:writeConcern] = write_concern.options end sel end
Source
# File lib/mongo/operation/shared/write_concern_supported.rb, line 28 def command(connection) add_write_concern!(super, connection) end
Calls superclass method
Source
# File lib/mongo/operation/shared/write_concern_supported.rb, line 26 def write_concern_supported?(connection); true; end