lib/nazrin/document_client.rb
Method batch
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def batch(operations)
ActiveSupport::Deprecation.warn 'config.debug_mode is deprecated. Use config.mode = \'sandbox\' instead.' and return nil if Nazrin.config.debug_mode
return nil if Nazrin.config.mode == 'sandbox'
documents = operations.each_with_object([]) do |(type, tuple), arr|