Module: Datagrid::Ordering::ClassMethods

Defined in:
lib/datagrid/ordering.rb

Overview

self.included

Instance Method Summary collapse

Instance Method Details

#order_unsupported(name, reason) ⇒ Object


33
34
35
# File 'lib/datagrid/ordering.rb', line 33

def order_unsupported(name, reason)
  raise Datagrid::OrderUnsupported, "Can not sort #{self.inspect} by ##{name}: #{reason}"
end