lib/acts_as_data_table/shared/session.rb
#
# Adds the given column to the current sorting
#
Adds the given column to the current sorting
Adds the given column to the current sorting
def add_column!(model_name, column_name, direction = nil)
          direction ||= 'ASC'
          d           = column_data(model_name, column_name)
          current_action_session(sc_session, []).push([d[:column], direction.to_s.upcase])
        end
def add_column! ( model_name , column_name , direction = nil ) direction ||= 'ASC' d = column_data ( model_name , column_name ) current_action_session ( sc_session , [ ] ) . push ( [ d [ :column ] , direction . to_s . upcase ] ) end
Adds the given column to the current sorting
Adds the given column to the current sorting
model_name
column_name
direction