lib/acts_as_data_table/shared/session.rb
def toggle_column!(model_name, column_name)
          if active_column?(model_name, column_name)
            remove_column!(model_name, column_name)
          else
            add_column!(model_name, column_name)
          end
        end
#
# Adds or removes a column from the current sorting columns
# This happens whenever the user decides to sort a table by multiple columns
#
Adds or removes a column from the current sorting columns
This happens whenever the user decides to sort a table by multiple columns
Adds or removes a column from the current sorting columns This happens whenever the user decides to sort a table by multiple columns
def toggle_column!(model_name, column_name)
          if active_column?(model_name, column_name)
            remove_column!(model_name, column_name)
          else
            add_column!(model_name, column_name)
          end
        end
def toggle_column! ( model_name , column_name ) if active_column? ( model_name , column_name ) remove_column! ( model_name , column_name ) else add_column! ( model_name , column_name ) end end
Adds or removes a column from the current sorting columns
This happens whenever the user decides to sort a table by multiple columns
Adds or removes a column from the current sorting columns This happens whenever the user decides to sort a table by multiple columns
model_name
column_name