Method: Query#sortable_columns
- Defined in:
- app/models/query.rb
#sortable_columns ⇒ Object
Returns a Hash of columns and the key for sorting
801 802 803 804 805 806 |
# File 'app/models/query.rb', line 801 def sortable_columns available_columns.inject({}) do |h, column| h[column.name.to_s] = column.sortable h end end |