Exception: CursorPager::ConflictingOrdersError

Inherits:
Error
  • Object
show all
Defined in:
lib/cursor_pager/conflicting_orders_error.rb

Overview

Will be raised when the relation is ordered by multiple attributes but in different directions.

Constant Summary collapse

MESSAGE =
<<~MESSAGE
  Ordering by multiple attributes requires they are all ordered in the
  same direction.
MESSAGE

Instance Method Summary collapse

Constructor Details

#initializeConflictingOrdersError

Returns a new instance of ConflictingOrdersError.



12
13
14
# File 'lib/cursor_pager/conflicting_orders_error.rb', line 12

def initialize
  super(MESSAGE)
end