Skip to content

Commit 61feb40

Browse files
committed
Fix Rare case error uninitialized constant AjaxDatatablesRails::ActiveRecord::Base
1 parent 81662a8 commit 61feb40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ajax-datatables-rails/base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module AjaxDatatablesRails
44
class Base
55

6-
class_attribute :db_adapter, default: ActiveRecord::Base.connection.adapter_name.downcase.to_sym
6+
class_attribute :db_adapter, default: ::ActiveRecord::Base.connection.adapter_name.downcase.to_sym
77
class_attribute :nulls_last, default: false
88

99
attr_reader :params, :options, :datatable

0 commit comments

Comments
 (0)