class Mongoid::Scroll::Errors::MismatchedSortFieldsError

Raised when the original sort params and the cursor sort params are different

Public Class Methods

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