Module: Katalyst::Tables::Sortable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/components/concerns/katalyst/tables/sortable.rb
Overview
Extension to add sorting support to a collection. Assumes collection and sorting are available in the current scope.
Defined Under Namespace
Classes: SortableHeaderComponent
Instance Method Summary collapse
Instance Method Details
#initialize ⇒ Object
10 11 12 13 14 |
# File 'app/components/concerns/katalyst/tables/sortable.rb', line 10 def initialize(**) super @header_row_cell_callbacks << method(:add_sorting_to_cell) if collection.sortable? end |