Module: Spree::Admin::TablesHelper
- Defined in:
- app/helpers/spree/admin/tables_helper.rb
Instance Method Summary collapse
-
#sort_by_active_class(row) ⇒ Object
Adds class ‘active’ to <th> & <td> tags for better tables styling.
Instance Method Details
#sort_by_active_class(row) ⇒ Object
Adds class ‘active’ to <th> & <td> tags for better tables styling
7 8 9 10 11 |
# File 'app/helpers/spree/admin/tables_helper.rb', line 7 def sort_by_active_class(row) if params[:q][:s] && params[:q][:s].include?(row) return "sort-active" end end |