GitHub
254dbbae

spree/spree

A

Spree::Admin::TablesHelper

Updated more than 3 months ago.
10
Complexity
9.7
Complexity / M
0
Duplication
0
Churn
15
Lines
11
Lines of Code
1
Methods
11
LOC / Method

No issues to see here. Woot.

module Spree
  module Admin
    module TablesHelper

      # Adds class 'active' to <th> & <td> tags
      # for better tables styling
      def sort_by_active_class(row)
        if params[:q][:s] && params[:q][:s].include?(row)
          return "sort-active"
        end
      end

    end
  end
end