# File sort_helper.rb, line 78 def self.columns=(column_names) # prepend id so that the first sortable column is at index 1 @@sort_columns = ['id'] + column_names @@sort_keys = {} @@sort_columns.each_with_index {|obj, i| @@sort_keys[obj] = i } end