Method: TableSortable::Column::Sorter#active_record_proc
- Defined in:
- lib/table_sortable/column/sorter.rb
#active_record_proc ⇒ Object
16 17 18 |
# File 'lib/table_sortable/column/sorter.rb', line 16 def active_record_proc -> (sort_order, col=nil) { order(col.name.to_s.underscore => sort_order) } end |