100% free for Open Source, forever. Get another set of eyes on your code.

100% free for Open Source, forever. Get another set of eyes on your code.

bbbeaffb
A

Spree::Admin::TablesHelper

Updated more than 3 months ago.

No issues here.

Congrats! Give yourself time to reflect on your awesome coding skillz.

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
10
Complexity
0
Duplication
15
Lines
1
Methods
9.7
Complexity / M
0
Churn
11
Lines of Code
11
LOC / Method