Module: AjaxDatatablesRails

Defined in:
lib/ajax-datatables-rails.rb,
lib/ajax-datatables-rails/config.rb,
lib/ajax-datatables-rails/version.rb,
lib/ajax-datatables-rails/datatable/column.rb,
lib/ajax-datatables-rails/orm/active_record.rb,
lib/ajax-datatables-rails/datatable/datatable.rb,
lib/ajax-datatables-rails/datatable/simple_order.rb,
lib/ajax-datatables-rails/datatable/simple_search.rb

Defined Under Namespace

Modules: Datatable, ORM Classes: Configuration

Constant Summary collapse

VERSION =
'0.4.0'

Class Method Summary collapse

Class Method Details

.configObject

AjaxDatatablesRails global settings



14
15
16
# File 'lib/ajax-datatables-rails/config.rb', line 14

def self.config
  @config ||= AjaxDatatablesRails::Configuration.new
end

.configure {|@config ||= AjaxDatatablesRails::Configuration.new| ... } ⇒ Object

configure AjaxDatatablesRails global settings

AjaxDatatablesRails.configure do |config|
  config.db_adapter = :pg
end


9
10
11
# File 'lib/ajax-datatables-rails/config.rb', line 9

def self.configure &block
  yield @config ||= AjaxDatatablesRails::Configuration.new
end