Module: Acts::DataTable::Shared::ActionController::OnDemand

Defined in:
lib/acts_as_data_table/shared/action_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



14
15
16
# File 'lib/acts_as_data_table/shared/action_controller.rb', line 14

def self.included(base)
  base.helper_method :acts_as_data_table_session
end

Instance Method Details

#acts_as_data_table_sessionObject



18
19
20
# File 'lib/acts_as_data_table/shared/action_controller.rb', line 18

def acts_as_data_table_session
  @acts_as_data_table_session ||= Acts::DataTable::Shared::Session.new(session, controller_path, action_name)
end