We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b81aed commit 7da3aabCopy full SHA for 7da3aab
lib/ajax-datatables-rails/base.rb
@@ -3,9 +3,15 @@
3
module AjaxDatatablesRails
4
class Base
5
6
- class_attribute :db_adapter, default: ::ActiveRecord::Base.connection.adapter_name.downcase.to_sym
+ class_attribute :db_adapter
7
class_attribute :nulls_last, default: false
8
9
+ class << self
10
+ def db_adapter
11
+ self.db_adapter = ::ActiveRecord::Base.connection.adapter_name.downcase.to_sym
12
+ end
13
14
+
15
attr_reader :params, :options, :datatable
16
17
GLOBAL_SEARCH_DELIMITER = ' '
0 commit comments