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
-
.config ⇒ Object
AjaxDatatablesRails global settings.
-
.configure {|@config ||= AjaxDatatablesRails::Configuration.new| ... } ⇒ Object
configure AjaxDatatablesRails global settings AjaxDatatablesRails.configure do |config| config.db_adapter = :pg end.
Class Method Details
.config ⇒ Object
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 |