class Mongoid::Scroll::Errors::MultipleSortFieldsError

Public Class Methods

new(opts = {}) click to toggle source
Calls superclass method
# File lib/mongoid/scroll/errors/multiple_sort_fields_error.rb, line 5
def initialize(opts = {})
  opts = opts.merge(sort: opts[:sort].keys.join(', ')) if opts[:sort] && opts[:sort].is_a?(Hash)
  super(compose_message('multiple_sort_fields', opts))
end